All of lore.kernel.org
 help / color / mirror / Atom feed
From: Evan Harper <elh1@sympatico.ca>
To: Alistair@mail.nerdnet.ca, netfilter@lists.netfilter.org
Subject: Re: Can't get port forwarding DNAT to work
Date: Fri, 12 Dec 2003 12:50:16 -0500	[thread overview]
Message-ID: <3FD9FFD8.8000502@sympatico.ca> (raw)
In-Reply-To: <>>


>>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
>>    
>>
>
>	Now you've changed the destination of the packets.  Have you allowed the 
>packets to get to the destination.   You need an equivalent rule in FORWARD 
>to  let those DNATTED packets IN. ...
>  
>
Indeed, this was my problem, which I figured out after I sent this 
message. Personally I think section 4.2 of the NAT HOWTO ought to 
mention this, since it seems to imply you need only the one rule.

Evan Harper



      parent reply	other threads:[~2003-12-12 17:50 UTC|newest]

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

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=3FD9FFD8.8000502@sympatico.ca \
    --to=elh1@sympatico.ca \
    --cc=Alistair@mail.nerdnet.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.