Allow IPv6 address entry in tools>ping - Loosens valid character check
[tomato/davidwu.git] / release / src / router / nocat / libexec / iptables / reset.fw
blob25f8211b4308d898cef161279dbcf2be9ed0328d
1 #!/bin/sh
2 ##
4 # reset.fw: reset the default firewall rules
6 ##
8 # Note: your PATH is inherited from the gateway process
11 # Flush all user-defined chains
13 iptables -t filter -D FORWARD -j NoCat 2>/dev/null
15 iptables -t nat -D PREROUTING -j NoCat_Capture 2>/dev/null
17 # Only nat if we're not routing
19 if [ -z "$RouteOnly" ]; then
20 iptables -t nat -D POSTROUTING -j NoCat_NAT 2>/dev/null
23 iptables -t mangle -D PREROUTING -j NoCat 2>/dev/null