summaryrefslogtreecommitdiffstats
path: root/tests/iptables.sh
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@netfilter.org>2020-02-22 13:01:35 +0100
committerJozsef Kadlecsik <kadlec@netfilter.org>2020-02-22 13:01:35 +0100
commitaca0b06d8cc61d7df1cc356632ba6e3e65a1e112 (patch)
tree622d8ff203bdd7df9d6b3da5ce3499d77f6222ba /tests/iptables.sh
parentd31400351015aa8d90a52b2c2cc58618ea11ca20 (diff)
parenta2a846e09ab67202b11a4795de93130c85f51756 (diff)
Merge branch 'region_lock'
Diffstat (limited to 'tests/iptables.sh')
-rwxr-xr-xtests/iptables.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/iptables.sh b/tests/iptables.sh
index bca3253..f101ab4 100755
--- a/tests/iptables.sh
+++ b/tests/iptables.sh
@@ -125,11 +125,21 @@ counter)
./sendip.sh -p ipv4 -id 10.255.255.254 -is 10.255.255.64 -p udp -ud 80 -us 1025 10.255.255.254 >/dev/null 2>&1
./sendip.sh -p ipv4 -id 10.255.255.254 -is 10.255.255.64 -p udp -ud 80 -us 1025 10.255.255.254 >/dev/null 2>&1
;;
+resize)
+ $ipset n test hash:ip hashsize 4096 maxelem 655360 2>/dev/null
+ $cmd -t raw -A OUTPUT -j SET --add-set test src
+ $cmd -t raw -A OUTPUT -s 10.255.0.0/16 -j DROP
+ $cmd -t raw -A OUTPUT -s 10.254.0.0/16 -j DROP
+ ./resize_sendip.sh &
+ $ipset restore < resize_target.set
+ ;;
stop)
$cmd -F
$cmd -X
$cmd -F -t mangle
$cmd -X -t mangle
+ $cmd -F -t raw
+ $cmd -X -t raw
$ipset -F 2>/dev/null
$ipset -X 2>/dev/null
;;