All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@vger.kernel.org
Subject: Re: fwmark iptables/ip routing interaction question
Date: Sat, 17 May 2008 12:49:11 +0200	[thread overview]
Message-ID: <482EB827.8010608@plouf.fr.eu.org> (raw)
In-Reply-To: <482E56C1.2070508@alust.homeunix.com>

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).

> 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.

  reply	other threads:[~2008-05-17 10:49 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 [this message]
2008-05-17 12:37               ` Alexei Ustyuzhaninov
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=482EB827.8010608@plouf.fr.eu.org \
    --to=pascal.mail@plouf.fr.eu.org \
    --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 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.