/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! */


> heres what what I have done so far,
...
> /usr/sbin/ipmasqadm portfw -a -P tcp -L (internet address) 2200 -R
10.0.0.22 21

Change that to:

IP=`ifconfig $EXTIF | awk '/inet addr/ { gsub(".*:", "", $2) ; print $2 }'`
/usr/sbin/ipmasqadm portfw -a -P tcp -L $IP 2200 -R 10.0.0.22 21

where EXTIF is your interface to the internet, i.e. ppp, eth0, eth1, etc.

Obviously this will have to run whenever your IP address changes.

John

_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- THIS INCLUDES 
UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to