0012-dash-F_0 234 Bytes
Newer Older
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