Hi solution 2 your problem
Hi ,
Try these commands.
If you are using your Firewall box as your gateway:
iptables -t nat -A PREROUTING -p tcp --dport 80 -d (real ip) -j DNAT --to-destination (web server ip)
iptables -t nat -A POSTROUTING -p tcp -d (web server ip) -j SNAT --to-source (local LAN ip)(internal ip of your firewall box )
And if you are using your firewall box as a proxy then you hv to add one more command.
iptables -t nat -A OUTPUT -p tcp -d (real ip) -j DNAT --to-destination (webserver ip).
|