/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! 
/* ALSO: Don't quote this header. It makes you look lame :-) */

> > ACCEPT     udp  ------  0.0.0.0/0  0.0.0.0/0    67 -> 68

This implies you use DHCP to get an IP address.

> ipmasqadm portfw -a -P udp -L 144.132.1.2 $port -R 192.168.1.225 $port

This implies you have a static IP address - or else you change it manually
whenever your address changes.  Also, you do know that only one machine may
be forwarded?

Here's what I am using (it's DirectX 7 but it still seems to work.)

EXTIF="eth1"
IP=`ifconfig $EXTIF | awk '/inet addr/ { gsub(".*:", "", $2) ; print $2 }'`

port=2300
while [ $port -le 2400 ]
  do
    /usr/sbin/ipmasqadm portfw -a -P udp -L $IP $port -R 192.168.1.4 $port
    /usr/sbin/ipmasqadm portfw -a -P tcp -L $IP $port -R 192.168.1.4 $port
    port=`expr $port + 1`
  done
/usr/sbin/ipmasqadm portfw -a -P udp -L $IP 47624 -R 192.168.1.4 47624
/usr/sbin/ipmasqadm portfw -a -P tcp -L $IP 47624 -R 192.168.1.4 47624

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