From: Ciprian Niculescu <Ciprian.Niculescu@int-evry.fr>
To: lartc@vger.kernel.org
Subject: [LARTC] iproute + mark question
Date: Tue, 14 May 2002 14:47:00 +0000 [thread overview]
Message-ID: <marc-lartc-102138771915888@msgid-missing> (raw)
i want to mark the pachets generated localy, and route them differently
so the logic in me was to mark in mangle in PREROUTING, beacouse it's
PRE, don't work.
someone tell me to try in OUTPUT in mangle, did it and works
so iptables -A OUTPUT -t mangle -p udp --dport 50000:51000 -j MARK
--set-to 0x1
ip rule add fwmark 0x1 table 230
ip route add default via 194... table 230
why it works
so i undestand that OUTPUT is before ROUTING, so the order is:
gen local -> OUTPUT(mangle) -> routing -> wire
does anybody have the hole packet path, a grafic, with: mangle, nat,
filter, routing, tc, tunel, for local generated pachetd and for
FORWARDed pachets???
C
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2002-05-14 14:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-14 14:47 Ciprian Niculescu [this message]
2002-05-14 15:20 ` [LARTC] iproute + mark question Daniel K.
2002-05-14 15:36 ` Ciprian Niculescu
2002-05-14 15:55 ` Daniel K.
2002-05-14 16:13 ` Ciprian Niculescu
2002-05-14 16:21 ` Julian Anastasov
2002-05-15 16:14 ` Jason A. Pattie
2002-05-15 16:27 ` Ciprian Niculescu
2002-05-15 16:47 ` Jason A. Pattie
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-102138771915888@msgid-missing \
--to=ciprian.niculescu@int-evry.fr \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.