[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Internal Routing for NAT



Hi. I have a NAT setup and working fine using the following settings.

        $IPTABLES -I PREROUTING  -p tcp -t nat -d 1.2.3.4 --dport 25 -j
DNAT --to 172.16.1.4:25
        $IPTABLES -A INPUT -i eth0 -d 1.2.3.4 -p tcp --dport 25 -j ACCEPT

For some reason when I connect from the local router the connections are not
being nated. They end up routing to the local machine on port 25. What can I
do to fix this?

-Ryan




Reply to: