#!/bin/sh
FW_IP=a.b.c.d
FW_PORT=2021

INT_IP=192.168.1.1
INT_PORT=21

export PATH=/usr/sbin:/sbin:$PATH
modprobe ip_masq_portfw debug=0
ipmasqadm portfw -f
ipmasqadm portfw -a -P tcp -L $FW_IP $FW_PORT -R $INT_IP $INT_PORT
ipmasqadm portfw -l -n
rmmod ip_masq_ftp
modprobe $* ip_masq_ftp fwports=$FW_PORT 

