I have a linux gateway box configured to dial up to the internet through a modem. That interface is ppp0 and I have a static IP address that I get from my ISP.
I also have eth0 configured as 192.168.1.1 and that connects to my LAN. I have some simple ipchains and masq. rules setup so I can use this interface as a gateway to share the internet.
I have a web server on the gateway that I would like to move to another linux box (because the web site is getting to be too big on HD space). How can I forward requests from the gateway (for the web server) to a another machine on my LAN (192.168.1.100) which I want to do the website hosting from now on?
I've tried using the command test command. The way I test it is first I go to http://192.168.1.1
and get my normal web site. Then I try to forward requests for that IP on port 80 to my new box. When I know that works I will change my 192.168.1.1 IP address to my static one from my ISP:
ipmasqadm portfw -a -P tcp -L 192.168.1.1 80 -R 192.168.1.100 80
This seems to do some kind of forwarding because I try to reload the http://192.168.1.1
page in my web broswer and it just hangs and times out. So I am thinking there is a problem on the gateway server not relaying the information back from the web server back to the client PC.
Has anyone got this to work?