Koozali.org: home of the SME Server

port forwarding

Henrik

port forwarding
« on: March 26, 2001, 05:11:46 PM »
Hi,

I want to forward some ports to my internal machine to get an application to work. I know which port to forward but I don't know where to do it or how to do it (or even if it's possible).

Can someone please help me how to solve this?

This is what I found on www.tsmservices.com/masq/

Kernel: 2.0.36
Modules:  
IPChains: ipmasqadm autofw -A -r tcp 47624 47625 -h www.xxx.yyy.zzz
ipmasqadm autofw -A -r tcp 2300 2400 -h www.xxx.yyy.zzz
ipmasqadm autofw -A -r udp 2300 2400 -h www.xxx.yyy.zzz

www.xxx.yyy.zzz = internal machine.
 
ipfwadm: ipautofw -A -r tcp 47624 47625 -h www.xxx.yyy.zzz
ipautofw -A -r tcp 2300 2400 -h www.xxx.yyy.zzz
ipautofw -A -r udp 2300 2400 -h www.xxx.yyy.zzz

www.xxx.yyy.zzz = internal machine.
 
Comments: This is all you need to get BattleCom working. These should also work for most DirectX 6.0 Games.

thanks,
Henrik

Boban

Re: port forwarding
« Reply #1 on: March 26, 2001, 09:08:15 PM »
here is how i got my battlecom working with e-smith ....
there are still some problems (you being a server doesn't work) with this solution (can you call it a solution if there are problems unsolved?)

you can put this as the last line in /etc/rc.d/rc.local (sorry e-smith, i'm still trying to learn this template stuff :)

ipmasqadm autofw -A -v -r udp 2300 2400 -h www.xxx.yyy.zzz
ipmasqadm autofw -A -v -r tcp 2300 2400 -h www.xxx.yyy.zzz
ipmasqadm autofw -A -v -r tcp 47624 47624 -h www.xxx.yyy.zzz
ipmasqadm autofw -A -v -r udp 47624 47624 -h www.xxx.yyy.zzz
ipmasqadm autofw -A -v -r udp 28800 28900 -h www.xxx.yyy.zzz

where www.xxx.yyy.zzz is the IP-adress of the client-machine (win client)

Don't know if this is good or bad for security, but hey, i'm talking to my friends thru battlecom and it works :)

Boban