/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! /* ALSO: Don't quote this header. It makes you look lame :-) */ I have the following AUTOFW settings that I want to convert to PORTFW. #AOE echo " - Setting Age of Empires" #ipmasqadm autofw -A -r udp 2300 2400 -h 192.168.0.2 #ipmasqadm autofw -A -r tcp 2300 2400 -h 192.168.0.2 #ipmasqadm autofw -A -r upd 1100 7000 -h 192.168.0.2 #ipmasqadm autofw -A -r tcp 1100 5000 -h 192.168.0.2 #ipmasqadm autofw -A -r udp 47624 47624 -h 192.168.0.2 Here is the script I wrote to try and do the above chains using PORTFW instead of AUTOFW (AUTOFW kills my outbound TCP traffic when I use it). Is this how I am supposed to be doing this? Because I could not seem to connect to any other players after running the script. #!/usr/bin/perl #AOE #echo " - Setting Age of Empires" for ($i=2300;$i<2401;$i++){ system("ipmasqadm portfw -a -P udp -L 192.168.0.1 $i -R 192.168.0.2 $i"); } print("udp up to $i forwarded\t"); for ($i=2300;$i<2401;$i++){ system("ipmasqadm portfw -a -P tcp -L 192.168.0.1 $i -R 192.168.0.2 $i"); } print ("tcp up tp $i forwarded\t"); for ($i=1100;$i<7001;$i++){ system("ipmasqadm portfw -a -P upd -L 192.168.0.1 $i -R 192.168.0.2 $i"); } print("udp up to $i forwarded\t"); for ($i=1100;$i<5001;$i++){ system("ipmasqadm portfw -a -P tcp -L 192.168.0.1 $i -R 192.168.0.2 $i"); } print("tcp upt to $i forwarded\t"); system("ipmasqadm portfw -a -P udp -L 192.168.0.1 47624 -R 192.168.0.2 47624"); Stephen Lawrence [EMAIL PROTECTED] _______________________________________________ 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.
