From: macach <macachuto@gmail.com>
To: netfilter@vger.kernel.org
Subject: Question: Why it is not possible to mark packet BEFORE first "route selection" in OUTPUT chain
Date: Sun, 25 Oct 2015 14:40:29 +0300 [thread overview]
Message-ID: <562CBFAD.40405@gmail.com> (raw)
I have a question.
I just want to understand this.
Why it is not possible to mark packet BEFORE "route selection" in OUTPUT chain.
And then choose route by mark
Then change source ip
And then send it to destination
Instead of this packet enter "route selection" where it SHOULD hit default route, otherwise it will never enter "-t mangle -A OUTPUT".
Default route changes it source ip.
"-t mangle -A OUTPUT" adds a mark
Then another "route selection" checks for marked route and redirects packet to appropriate interface, BUT doesn't change source ip (also why?)
Then "-t nat -A POSTROUTNG" changes source ip.
My question is why we can't mark packet BEFORE first "route selection", then choose routing table by mark, then change source ip, and send
packet to interface.
Thank you for explanations.
next reply other threads:[~2015-10-25 11:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-25 11:40 macach [this message]
2015-10-25 16:11 ` Question: Why it is not possible to mark packet BEFORE first "route selection" in OUTPUT chain Pascal Hambourg
2015-10-25 18:20 ` macach
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=562CBFAD.40405@gmail.com \
--to=macachuto@gmail.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.