atm I have
iptables -t nat -A PREROUTING -p tcp -i eth0 -d 6.5.4.3 --dport 80 -j DNAT --to 192.168.0.1:80
iptables -t nat -A PREROUTING -p tcp -i eth0 -d 6.5.4.3 --dport 25 -j DNAT --to 192.168.0.1:25
router ip address = 192.168.0.254
6.5.4.3 = External IP
(distro slackware)
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 ?
