From mboxrd@z Thu Jan 1 00:00:00 1970 From: Evan Harper Subject: Can't get port forwarding DNAT to work Date: Sun, 07 Dec 2003 20:14:44 -0500 Sender: netfilter-admin@lists.netfilter.org Message-ID: <3FD3D084.7060206@sympatico.ca> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org I have a few machines on a LAN connected to the internet via a gateway server with a DSL connection. I have packet filtering and IP masq up and running with no problems -- the internal machines can connect out to the Internet and everything is good. However I've been trying for a while now to forward port 25 to a mail server inside the LAN with absolutely no luck. The relevant rc.firewall line is: iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 25 -j DNAT --to 192.168.0.4:25 # forward smtp traffic to mail server Everything looks normal except that packets sent from outside the network to port 25 just fall into a black hole. I've fiddled with the options for a while, changing nothing. Help would be much appreciated. Evan Harper