summaryrefslogtreecommitdiffstats
path: root/iptables/tests/shell/testcases/ipt-restore/0012-dash-F_0
blob: fd82afa1bc8ce1aa755ba82e9912976ea1e2cc56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash -e

# make sure -F lines don't cause segfaults

RULESET='*nat
-F PREROUTING
-A PREROUTING -j ACCEPT
-F PREROUTING
COMMIT'

echo -e "$RULESET" | $XT_MULTI iptables-restore
echo -e "$RULESET" | $XT_MULTI iptables-restore -n