How to make a redirecting ?
Posted on 2002-04-26
I have a RedHat 7.2 PC, which is configured as firewall, using ipchains. I have an internal network 192.168.x.x/255.255.0.0, which this firewall is protecting. The firewall has multiple real IP addresses ( done with aliasing ).
I also have a WEB server, which is connected to my external network ( let's assume it has ip address 18.104.22.168 ).
I want to connect the WEB server to the internal network and to add its IP address as another alias in the firewall and somehow to make redirection. Assuming the internal IP address of the WEB server will be 192.168.0.5.
So, the firewall will have the real IP address of my WEB server (22.214.171.124) and should redirect all the incoming packages on port 80 to 192.168.0.5:80.
My question is how can I make it with ipchains or another tool.