Nicholas Brown
08-24-2002, 05:28 PM
Ive got a Redhat Linux server (7.3 with the latest kernel and rpms) and 3 client machines all running windows. The server is online via ADSL but I need to forward some ports from the server to my main machine so I can use file transfers etc.
Can anyone recommend a good proggy for simple port forwarding? I was wondering if Redhat has built in port forwarding like windows 2000 advanced server has ? or not? :)
Any help/advice appreciated as always
Nick
Studio64
08-24-2002, 06:14 PM
Google
http://www.ox.compsoc.org.uk/~steve/portfw-2.2.html
http://www.linuxselfhelp.com/HOWTO/IP-Masquerade-HOWTO/
http://www.e-infomax.com/ipmasq/
Nicholas Brown
08-24-2002, 06:55 PM
Thankyou very much :D Looks like I can finally delete the windows2000 adv server partition. ;)
bitserve
08-24-2002, 10:40 PM
We've always used ipvs for port forwarding of TCP and UDP services. It's always worked better than Linux's actual port forwarding features.
man ipvsadm
Nicholas Brown
08-25-2002, 06:04 AM
Thanks Mark - I'll take a look at that :)
The Prohacker
08-25-2002, 12:53 PM
I usually do it via iptables....
iptables -t nat -I PREROUTING -j DNAT -d source.IP -p tcp --dport 80 --to destination.IP:22
This will forward port 80 to 22
Does anyone know if this also works if you want to forward all webserver requests to a server in another IP range?? I don't get it to work. Today one of my servers went down. And now i routed the IP to another server. And want to forward all request to my home IP address so i don't have to change all A records(all at different nameservers etc.) The server that went down is now running on my home line.
It won't be fast, but at least it will be available, when it works.
James[UH]
12-24-2002, 05:54 PM
Simple to use tool for windows:
http://www.analogx.com/contents/download/network/pmapper.htm
I don't have any windows machines running in the DC, so a simular solution for linux would be great.