From: "Eric B." <ebenze@hotmail.com>
To: netfilter@vger.kernel.org
Subject: Re: Success routing mark'ed packets - but still confused why it didn't work the first time....
Date: Wed, 9 Apr 2008 23:13:48 -0400 [thread overview]
Message-ID: <ftk0o3$45q$1@ger.gmane.org> (raw)
In-Reply-To: alpine.LNX.1.10.0804092310390.17930@fbirervta.pbzchgretzou.qr
"Jan Engelhardt" <jengelh@computergmbh.de> wrote in message
news:alpine.LNX.1.10.0804092310390.17930@fbirervta.pbzchgretzou.qr...
>>Do the ip rules based on the fwmark work on the individual packet's mark
>>value or the conntrack mark, or both?
>
> routing rules work on packet mark ("nfmark" "fwmark"), whch is
> why --restore-mark is needed.
But then, do you not need a --restore-mark in both the FORWARD and OUTPUT
chains?
-t mangle -A FORWARD -m connmark --mark 0 -m conntrack --ctstate NEW -j
prefout
-t mangle -A OUTPUT -m connmark --mark 0 -m conntrack --ctstate NEW -j
prefout
Or are you simply marking the connection and expecting the system to
randomly choose whether to output on ppp0 or ppp1?
Thanks,
Eric
prev parent reply other threads:[~2008-04-10 3:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 22:06 Success routing mark'ed packets - but still confused why it didn't work the first time Eric B.
2008-04-09 4:15 ` Jan Engelhardt
2008-04-09 20:32 ` Eric B.
2008-04-09 20:39 ` Eric B.
2008-04-09 21:14 ` Jan Engelhardt
2008-04-10 3:13 ` Eric B. [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='ftk0o3$45q$1@ger.gmane.org' \
--to=ebenze@hotmail.com \
--cc=netfilter@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.