diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-04-18 17:45:46 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-04-18 17:46:05 +0200 |
commit | 18dfaeb51b7f6205a61925c97053a7fad4dfafc0 (patch) | |
tree | e0bfec6f24c08e3688dc4bbab844438f806309bc /tests | |
parent | 5784bfde370970e08a0e72d6e0b31486de9b3b5d (diff) |
tests: family-ipv4: update test to use current syntax
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/family-ipv4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/family-ipv4 b/tests/family-ipv4 index b15d1595..e744f028 100644 --- a/tests/family-ipv4 +++ b/tests/family-ipv4 @@ -1,10 +1,14 @@ #! nft -f +flush chain ip filter output +delete chain ip filter output +delete table filter + add table ip filter -add chain ip filter output NF_INET_LOCAL_OUT 0 +add chain ip filter output { hook NF_INET_LOCAL_IN 0; } # IP address add rule ip filter output ip daddr 192.168.0.1 counter # TCP ports -add rule ip filter output ip protocol 6 tcp dport 22 counter +add rule ip filter output tcp dport 22 counter |