From: "Martin A. Brown" <mabrown-lartc@securepipe.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Application routing
Date: Sat, 16 Aug 2003 17:26:32 +0000 [thread overview]
Message-ID: <marc-lartc-106105485521235@msgid-missing> (raw)
In-Reply-To: <marc-lartc-106105223519474@msgid-missing>
Paul,
: I have a system which has two ethernet interfaces to cable modems. The
: cable modems have NAT active on them. I also have one ethernet
: interface connected to my home LAN. I have followed the documentation
: and have setup split access such that I can route answers to packets
: coming in over a particular provider back out again over that same
: provider.
:
: I now want to be able to start an application and select the interface
: over which it will route frames. For example: If I use ping with the
: -i option the routing works. However if I don't use the -i option then
: the network is deemed unreachable. I would expect this as there is no
: route to the destination address in the tables and I assume that the
: source address that is being used has been taken from my hostname which
: does not match either of my interfaces.
Source address selection is based on route selection [1] [2]. What does
your default route look like? I'm puzzled that you say you are able to
specify an interface (with ping -i) and reach the destination, however
without specifying an interface, the kernel should look up a route for
you, and then (if there still isn't a source address on the packet) supply
a source address for the outbound packet.
What do your routing tables look like? "ip route show" for all tables
What does your RPDB look like? "ip rule show"
: How do I solve this issue my current thoughts are
:
: Add iptables entry when the process is created to set the MARK based on
: the owner e.g. SID or PID. Add ip rule to route from MARK to the tables
: created as as result of split access.
:
: Is this the most efficient method to achieve this solution or is there
: some other trick that I could use ?
Because I don't understand what the problem is yet, I'm not going to
comment on whether this trick or another trick would be fruitful. Perhaps
you can give us some hard details and show us how it isn't working as you
had expected/hoped?
Best,
-Martin
[1] http://linux-ip.net/html/routing-saddr-selection.html
[2] http://linux-ip.net/gl/ip-cref/node155.html
[3]
--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2003-08-16 17:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-16 16:42 [LARTC] Application routing paul.walling
2003-08-16 17:26 ` Martin A. Brown [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=marc-lartc-106105485521235@msgid-missing \
--to=mabrown-lartc@securepipe.com \
--cc=lartc@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox