All of lore.kernel.org
 help / color / mirror / Atom feed
From: Evan Harper <elh1@sympatico.ca>
To: netfilter@lists.netfilter.org
Subject: Can't get port forwarding DNAT to work
Date: Sun, 07 Dec 2003 20:14:44 -0500	[thread overview]
Message-ID: <3FD3D084.7060206@sympatico.ca> (raw)

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



             reply	other threads:[~2003-12-08  1:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-08  1:14 Evan Harper [this message]
     [not found] ` <200312111329.57484.Alistair Tonner <>
2003-12-12 17:50   ` Can't get port forwarding DNAT to work Evan Harper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FD3D084.7060206@sympatico.ca \
    --to=elh1@sympatico.ca \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.