mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Luke -Jr <luke@dashjr.org>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: IP routing with fwmark
Date: Tue, 10 Oct 2006 15:12:01 -0500	[thread overview]
Message-ID: <200610101512.02207.luke@dashjr.org> (raw)

Having trouble getting my routing rules to work. Basically, I just want to 
lock a connection to use a single network interface. The common and only 
method (compatible with IP forwarding) seems to be using CONNMARK to keep 
track of the interface each connection is assigned to.
However, for some reason, it appears the Linux IP routing table is not 
correctly processing the fwmark rules:
12:     from all fwmark 0xa lookup inet_sbc
Both inet_sbc and main tables have a default route set. If I prepend "prohibit 
default" into *either* of the tables (main or inet_sbc), the packet is 
dropped. Since a packet only has a single route, this suggests that Linux is 
doing two routing lookups, and only processing the fwmark rules in the first 
one (which, if not an error, is ignored and overridden by the later lookup).

Any other possibilities, suggestions, ideas, or fixes? Or should I post more 
details?

Thanks,

Luke-Jr (CC replies please)

                 reply	other threads:[~2006-10-10 20:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200610101512.02207.luke@dashjr.org \
    --to=luke@dashjr.org \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®