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: Ignorance about combining two net connections
Date: Sun, 14 Oct 2007 15:57:00 +0200	[thread overview]
Message-ID: <4712202C.9060301@plouf.fr.eu.org> (raw)
In-Reply-To: <20071014123703.GA30106@crowfix.com>

Hello,

felix@crowfix.com a écrit :
[...]
> For instance, I know that when a client connects to a
> remote server's port 25, when the server accept()s the connection, it
> assigns a new temporary port to that connection.

Huh ? What are you talking about ? Aren't you confusing with FTP ?

> Suppose I have an iptables rule which sends all outgoing traffic with
> a destination port of 25 down the static pipe.

You need more thant a simple iptables rule. Iptables will just mark the 
packets and do some NAT if required, you need also advanced routing to 
route marked packets through the proper interface. See the LARTC howto. 
Do not forget to disable source address validation (rp_filter).

[cut irrelevant stuff]
> Incoming to the local SMTP server doesn't need any attention, right?

Reply traffic of incoming connections must be routed through the same 
ISP, because the other ISP may consider it as IP spoofing and drop it. 
This also requires advanced routing.

      parent reply	other threads:[~2007-10-14 13:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-14 12:37 Ignorance about combining two net connections felix
2007-10-14 12:53 ` G.W. Haywood
2007-10-14 13:01   ` felix
2007-10-14 13:57 ` Pascal Hambourg [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=4712202C.9060301@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.