diff options
Diffstat (limited to 'tests/set')
-rwxr-xr-x | tests/set | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/set b/tests/set new file mode 100755 index 00000000..17fb2183 --- /dev/null +++ b/tests/set @@ -0,0 +1,14 @@ +#! nft -f + +table add filter +chain add filter output NF_INET_LOCAL_OUT 0 + +# set: IP addresses +rule add filter output ip daddr { \ + 192.168.0.1, \ + 192.168.0.2, \ + 192.168.0.3, \ +} + +# set: tcp ports +rule add filter output ip protocol 6 tcp dport { 22, 23 } counter |