diff options
author | Florian Westphal <fw@strlen.de> | 2018-11-02 16:19:20 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-11-03 20:35:22 +0100 |
commit | c3e8dbd4139589245403fd06479af9725c2bc341 (patch) | |
tree | 6a8a2b41b7891620875b3349930e68b267675b0a /extensions/libebt_ip.t | |
parent | cd90cef0c18a996f499c9e31fff7ee0554fe39f9 (diff) |
ebtables: add test cases
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libebt_ip.t')
-rw-r--r-- | extensions/libebt_ip.t | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/extensions/libebt_ip.t b/extensions/libebt_ip.t new file mode 100644 index 00000000..6f99aa56 --- /dev/null +++ b/extensions/libebt_ip.t @@ -0,0 +1,10 @@ +:INPUT,FORWARD,OUTPUT +-p ip --ip-src ! 192.168.0.0/24 -j ACCEPT;-p IPv4 --ip-src ! 192.168.0.0/24 -j ACCEPT;OK +-p IPv4 --ip-dst 10.0.0.1;=;OK +-p IPv4 --ip-tos 0xFF;=;OK +-p IPv4 --ip-proto tcp --ip-dport 22;=;OK +-p IPv4 --ip-proto udp --ip-sport 1024:65535;=;OK +-p IPv4 --ip-proto 253;=;OK +-p IPv4 --ip-proto icmp --ip-icmp-type echo-request;=;OK +-p IPv4 --ip-proto icmp --ip-icmp-type 1/1;=;OK +-p ip --ip-protocol icmp --ip-icmp-type ! 1:10;-p IPv4 --ip-proto icmp --ip-icmp-type ! 1:10/0:255 -j CONTINUE;OK |