Click to See Complete Forum and Search --> : port forwarding


Syngin
10-21-2001, 07:43 PM
Hello again,

Well it looks like I managed to get this RH 7 box up as my gateway and everything is going smoothly except for one thing: I need the system to port forward anything on port 451 to my Windows box. (FTP thing)

For my firewall, I'm using this script: http://www.redhat.com/support/resources/tips/firewall/firewallss.txt

I've also installed ipmasqadm and have modified the following line from the above script as such:

Original:
## This one forwards a specilized port from the firewall and
## points it at a machine on the LAN with the IP address of
## 192.168.100.100 at port 7000.
# /usr/sbin/ipmasqadm portfw -a -P tcp -L $EXTERNALIP 7000 -R 192.168.100.100 7000

My changes:
## This one forwards a specilized port from the firewall and
## points it at a machine on the LAN with the IP address of
## 192.168.0.10 at port 451.
/usr/sbin/ipmasqadm portfw -a -P tcp -L $EXTERNALIP 451 -R 192.168.0.10 451

(192.168.0.10 is my windows box)

I'm using the default kernel in RH 7 and am assuming that portforwarding is enabled although I did have to manually install ipmasqadm.

Any help with this would be greatly appreciated. Even commands to check if port forwarding was compiled in my kernel would help.

Additional Note:

Oh, and I did uncomment the appropriate lines in this snippet:
### Port Forwarding Operations #################################
# Uncomment these commands only if port forwarding is needed.
# this one
# echo "Enabling IPPORTFW Redirection on the external LAN..."
# this one
# /usr/sbin/ipmasqadm portfw -f

[ 21 October 2001: Message edited by: Syngin ]