From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: route outgoing smtp via a specific interface
Date: Mon, 3 May 2004 00:45:56 +0100 [thread overview]
Message-ID: <200405030045.56089.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <86y8oatnsf.fsf@poke.localdomain>
On Monday 03 May 2004 12:25 am, Christer Ekholm wrote:
> Antony Stone <Antony@Soft-Solutions.co.uk> writes:
> > On Sunday 02 May 2004 11:50 pm, Christer Ekholm wrote:
> >> I have two IP-providers. And the faster one of them blocks smtp. I
> >> have been trying to route smtp to the slower while still routing
> >> everything else to the faster, without success. Is it possible at all?
> >
> > IProute2, http://lartc.org
>
> Thankyou for the answer. I have read that, and tried everything I
> could think of.
Ah. Sorry if my previous response seemed a little terse - I did not realise
you were aware of iproute2 and had tried so much of it already.
> I think my problem is that I need this to work from the host with the
> connections to the providers. (localhost).
>
> My next thought was to use iptables to add a SNAT rule. But SNAT is only
> allowed in POSTROUTING, and I think I would need that in OUTPUT
I would recommend that you do try such a rule, since POSTROUTING happens after
OUTPUT (and FORWARD).
Try:
iptables -A POSTROUTING -t nat -p tcp --dport 25 -j SNAT --to 217.215.183.181
Regards,
Antony.
--
Never write it in Perl if you can do it in Awk.
Never do it in Awk if sed can handle it.
Never use sed when tr can do the job.
Never invoke tr when cat is sufficient.
Avoid using cat whenever possible.
Please reply to the list;
please don't CC me.
next prev parent reply other threads:[~2004-05-02 23:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-02 22:50 route outgoing smtp via a specific interface Christer Ekholm
2004-05-02 23:05 ` Antony Stone
2004-05-02 23:25 ` Christer Ekholm
2004-05-02 23:45 ` Antony Stone [this message]
2004-05-03 0:30 ` Christer Ekholm
2004-05-03 2:13 ` Alexander Samad
2004-05-03 6:15 ` Christer Ekholm
2004-05-03 4:07 ` Alexis
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=200405030045.56089.Antony@Soft-Solutions.co.uk \
--to=antony@soft-solutions.co.uk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox