summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/chains/0012reject_in_prerouting_1
blob: 81cda0c416d00dc98ec5ddd0344233f226796366 (plain)
1
2
3
4
5
6
7
8
9
#!/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
echo "E: accepted reject in prerouting hook" >&2