atm I have
iptables -t nat -A PREROUTING -p tcp -i eth0 -d 18.104.22.168 --dport 80 -j DNAT --to 192.168.0.1:80
iptables -t nat -A PREROUTING -p tcp -i eth0 -d 22.214.171.124 --dport 25 -j DNAT --to 192.168.0.1:25
router ip address = 192.168.0.254
126.96.36.199 = External IP
in my firewall scripts.
works fine as a port forward .. but I have noticed that the port forward does not pass on the orginal IP address to these servers..
basicallly the mail server was alloud to relay for ip address 192.168.0.0/24
but since it does not pass on the orgianal IP address my mail server could relay every one (I have now excluded that ip from relay)
also with the web server the logs have the remote IP address as the router ip of 192.168.0.1
is there any way of port forwarding and leaving on the orignal IP address with IPtables ?