From: Pablo Neira Ayuso Date: Thu, 18 Apr 2013 15:45:46 +0000 (+0200) Subject: tests: family-ipv4: update test to use current syntax X-Git-Tag: v0.099~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18dfaeb51b7f6205a61925c97053a7fad4dfafc0;p=thirdparty%2Fnftables.git tests: family-ipv4: update test to use current syntax Signed-off-by: Pablo Neira Ayuso --- 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