atm I have
iptables -t nat -A PREROUTING -p tcp -i eth0 -d 126.96.36.199 --dport 80 -j DNAT --to 192.168.0.1:80
iptables -t nat -A PREROUTING -p tcp -i eth0 -d 188.8.131.52 --dport 25 -j DNAT --to 192.168.0.1:25
router ip address = 192.168.0.254
184.108.40.206 = 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 ?