From: Guido Trentalancia <guido@trentalancia.com>
To: Mike Wright <mike.wright@mailinator.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Port forwarding with iptables on tunnel interface
Date: Fri, 12 Feb 2010 23:27:40 +0100 [thread overview]
Message-ID: <1266013660.2980.150.camel@tesla.lan> (raw)
In-Reply-To: <4B75B283.1040300@mailinator.com>
Hello again Mike,
On Fri, 2010-02-12 at 11:56 -0800, Mike Wright wrote:
> >> Salve, Guido. I gave this a verrrry quick glance and off the top of my
> >> head I think something looks fishy in the POSTROUTING rules.
> >>
> >> In the PREROUTING you are selecting based on the *destination* port. On
> >> the return trip shouldn't POSTROUTING use *source* port?
> >
> > Hold on a second. The originating caller expects a reply on *its 25
> > port*. Therefore my originating port could be everything and usually is
> > an high port (> 1024) different than 25, but the important is that the
> > destination port is 25 because there is the caller waiting a reply.
> >
> > Therefore even in the case of SNAT, I am selecting the destination port.
> >
> > Do you convene with me now ?
>
> Yes, indeed. It seems I have my brain in backwards ;D
>
> Buona fortuna !
You were actually right. The SNAT needs to be done with --sport 25 and
not with --dport 25. But still I cannot get the mail delivered and
actually I cannot see POSTROUTING but only untranslated reply packets...
Any other idea ?
Regards,
Guido
next prev parent reply other threads:[~2010-02-12 22:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-11 18:14 Port forwarding with iptables on tunnel interface Guido Trentalancia
2010-02-11 18:57 ` Patrick McHardy
2010-02-11 19:20 ` Guido Trentalancia
2010-02-12 5:29 ` Patrick McHardy
2010-02-12 13:28 ` Guido Trentalancia
2010-02-12 14:41 ` Patrick McHardy
2010-02-12 15:21 ` Guido Trentalancia
2010-02-12 17:30 ` Guido Trentalancia
2010-02-12 19:01 ` Mike Wright
2010-02-12 19:23 ` Guido Trentalancia
2010-02-12 19:56 ` Mike Wright
2010-02-12 22:27 ` Guido Trentalancia [this message]
2010-02-11 20:05 ` Guido Trentalancia
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=1266013660.2980.150.camel@tesla.lan \
--to=guido@trentalancia.com \
--cc=mike.wright@mailinator.com \
--cc=netfilter@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox