#!/bin/sh

# Knock out source NAT and forwarding
echo '0' > /proc/sys/net/ipv4/ip_forward
modprobe -r ip_nat_ftp
modprobe -r ip_conntrack_ftp
iptables -t nat -F POSTROUTING

# Remove firewalling protecting FORWARD chain
iptables -F FORWARD
iptables -P FORWARD ACCEPT

# Remove input firewall
iptables -F INPUT
iptables -P INPUT ACCEPT

iptables -t nat -F PREROUTING

