Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Alexei Ustyuzhaninov <alust@alust.homeunix.com>
To: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
Cc: netfilter@vger.kernel.org
Subject: Re: fwmark iptables/ip routing interaction question
Date: Sat, 17 May 2008 18:37:43 +0600	[thread overview]
Message-ID: <482ED197.8040509@alust.homeunix.com> (raw)
In-Reply-To: <482EB827.8010608@plouf.fr.eu.org>

Pascal Hambourg wrote:
> Alexei Ustyuzhaninov a écrit :
>> Pascal Hambourg wrote:
>>>
>>> SNAT should work on packets creating a new connection (i.e. in the 
>>> state NEW).
>>
>> Yes, really! The SYN packet goes out through the right interface with 
>> the right source address, SYN/ACK comes back and that's all, nothing 
>> will happen more.
> 
> This looks like a filtering issue causing the reply packet to be 
> dropped. Check your iptables 'filter' rules and that source validation 
> by reversed path is disabled for that interface 
> (/proc/sys/net/ipv4/conf/<interface>/rp_filter=0).

Yes, rp_filter was the issue indeed. Thank you very much.

>> I just want a simple thing: to send mail via one provider and all other
>> traffic via the other provider
> 
> You may be able to specify the desired source address for outgoing 
> connections if your mail application allows it.


No, of course the mail application doesn't bother about source addresses 
and IP routing. I believe it operates at different level of ISO model. :)

-- 
Thanks again,
Alexei

  reply	other threads:[~2008-05-17 12:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-07 14:36 fwmark iptables/ip routing interaction question pthyseba
2008-05-07 15:04 ` Jan Engelhardt
2008-05-11 16:23   ` Alexei Ustyuzhaninov
2008-05-11 17:39     ` Jan Engelhardt
2008-05-11 17:50       ` Alexei Ustyuzhaninov
2008-05-16 15:03         ` Pascal Hambourg
2008-05-17  3:53           ` Alexei Ustyuzhaninov
2008-05-17 10:49             ` Pascal Hambourg
2008-05-17 12:37               ` Alexei Ustyuzhaninov [this message]
2008-05-17 23:26                 ` Pascal Hambourg

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=482ED197.8040509@alust.homeunix.com \
    --to=alust@alust.homeunix.com \
    --cc=netfilter@vger.kernel.org \
    --cc=pascal.mail@plouf.fr.eu.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