From 18dfaeb51b7f6205a61925c97053a7fad4dfafc0 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 18 Apr 2013 17:45:46 +0200 Subject: tests: family-ipv4: update test to use current syntax Signed-off-by: Pablo Neira Ayuso --- tests/family-ipv4 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3