From: Grant Edwards <grant.b.edwards@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: OT: default route dependent on dest port?
Date: Fri, 4 Oct 2013 22:44:43 +0000 (UTC) [thread overview]
Message-ID: <l2ngcq$glg$1@ger.gmane.org> (raw)
In-Reply-To: 20131005010856.496ced83@gacer.netixen.com
On 2013-10-04, Dragostin Yanev <gentoo+user@netixen.com> wrote:
> On Fri, 4 Oct 2013 20:55:25 +0000 (UTC)
>
>> IOW I've succesfully re-routed TCP _packets_ but not the TCP
>> _connection_.
>>
>> How do I tell the TCP stack that it's supposed to use the 172.16
>> inteface/gateway for connections to port 80?
>
> It's been a while but i believe you want to route via interface not
> gateway. Providing more info will make it easier to help you.
Can you explain what "route via interface" means?
I tried a default route like this:
ip route add table pmain default dev net2
instead of:
ip route add table pmain default via <gateway-ip> dev net2
But then non-local packets routed via that table don't seem to go out
any interface at all.
--
Grant Edwards grant.b.edwards Yow! I'm meditating on
at the FORMALDEHYDE and the
gmail.com ASBESTOS leaking into my
PERSONAL SPACE!!
prev parent reply other threads:[~2013-10-04 22:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-04 20:55 [gentoo-user] OT: default route dependent on dest port? Grant Edwards
2013-10-04 21:49 ` Kerin Millar
2013-10-04 22:15 ` [gentoo-user] " Grant Edwards
2013-10-04 22:50 ` Grant Edwards
2013-10-04 23:08 ` Grant Edwards
2013-10-04 22:08 ` [gentoo-user] " Dragostin Yanev
2013-10-04 22:44 ` Grant Edwards [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='l2ngcq$glg$1@ger.gmane.org' \
--to=grant.b.edwards@gmail.com \
--cc=gentoo-user@lists.gentoo.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