From 6b29a5bebb957387fe1aac8fcbfd431e6be237f0 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Fri, 11 Dec 2015 11:10:14 +0100 Subject: tests/: rearrange tests directory Rearrange the directory to obtain a better organization of files and tests-suites. We end with a tree like this: tests | .--- py .--- shell .--- files This was suggested by Pablo. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- tests/files/family-ipv4 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/files/family-ipv4 (limited to 'tests/files/family-ipv4') diff --git a/tests/files/family-ipv4 b/tests/files/family-ipv4 new file mode 100644 index 00000000..0700e16d --- /dev/null +++ b/tests/files/family-ipv4 @@ -0,0 +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 { type filter hook input priority 0; } + +# IP address +add rule ip filter output ip daddr 192.168.0.1 counter + +# TCP ports +add rule ip filter output tcp dport 22 counter -- cgit v1.2.3