Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Jose Luis Domingo Lopez <lartc@24x7linux.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Re: Routing/NAT question
Date: Fri, 13 Sep 2002 20:14:36 +0000	[thread overview]
Message-ID: <marc-lartc-103194815209922@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103193632028299@msgid-missing>

On Friday, 13 September 2002, at 13:33:46 -0500,
Greg Scott wrote:

> Note that there is nothing special about the number 13, and the table number doesn't have anything to do with value of the fwmark.  I picked 13 and used that number in both places only because today is Friday, Sept. 13.  
> 
You must be _very_ careful when dealing with "iptables" and "ip" for
marking packets and routing them based on those marks. The numeric
argument to:
iptables -t mangle -A PREROUTING --jump MARK --set-mark 13

is a decimal number, BUT the argument to "ip" is an hexadecimal number,
so to insert a matching "ip rule" you should do:
ip rule add fwmark D pref 10000 table whatever

NOT

ip rule add fwmark 13 pref 10000 table whatever

Hope it helps.

-- 
Jose Luis Domingo Lopez
Linux Registered User #189436     Debian Linux Woody (Linux 2.4.19-pre6aa1)
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2002-09-13 20:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-13 16:57 [LARTC] Re: Routing/NAT question Tom Diehl
2002-09-13 18:33 ` Greg Scott
2002-09-13 20:14 ` Jose Luis Domingo Lopez [this message]
2002-09-13 22:04 ` Martin A. Brown
2002-09-14  4:21 ` Greg Scott
2002-09-16 16:35 ` Tom Diehl
2002-09-16 23:48 ` Greg Scott

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-103194815209922@msgid-missing \
    --to=lartc@24x7linux.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