#!/bin/sh
##
#
# reset.fw: reset the default firewall rules
#
##

# Note: your PATH is inherited from the gateway process
#

# Flush all user-defined chains
#
iptables -t filter -D FORWARD -j NoCat 2>/dev/null

iptables -t nat -D PREROUTING -j NoCat_Capture 2>/dev/null

# Only nat if we're not routing
#
if [ -z "$RouteOnly" ]; then
  iptables -t nat -D POSTROUTING -j NoCat_NAT 2>/dev/null
fi

iptables -t mangle -D PREROUTING -j NoCat 2>/dev/null

