summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0012reject_in_prerouting_1
blob: 0ee86c11055ed147464611ccdce1fcd05d215d73 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

set -e

$NFT add table t
$NFT add chain t prerouting {type filter hook prerouting priority 0 \; }

# wrong hook prerouting, only input/forward/output is valid
$NFT add rule t prerouting reject 2>/dev/null || exit 0
echo "E: accepted reject in prerouting hook" >&2
exit 1