Listing 1. rc.iptables Script

#!/bin/sh
# first, declare our trusted path
PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin :/usr/local/bin
export PATH
# modify the following to point to your
# iptables binary:
IPT=/usr/local/sbin/iptables
echo 0 > /proc/sys/net/ipv4/ip_forward
# some modules we'll want to install
modprobe ip_tables
modprobe ip_nat_ftp
modprobe ip_conntrack_ftp