From: "John H. Spicer" <jhs@edg.com>
To: netfilter@lists.netfilter.org
Subject: Problem using fwmark -- how to mark packets from local host?
Date: Wed, 03 Mar 2004 17:09:38 -0500 [thread overview]
Message-ID: <404657A2.7080301@edg.com> (raw)
I'm trying to use fwmark to mark packets so that they can be routed to a
particular interface.
I'm doing this:
iptables -t mangle -A PREROUTING -d ! $inet -j MARK --set-mark 0x0a -p tcp --dpo
rt 25
ip route add default via $IPADDR2 table TSMTP
ip rule add pref 1 fwmark 0x0a table TSMTP
I'm also using NAT and masquarading.
The rules above work for packets received from other systems that are going
through NAT, but it doesn't work for packets from the local system. Those
packets are still going out through the normal default route of the system.
Is there a way to mark packets originating on the local system?
Thanks,
John Spicer
next reply other threads:[~2004-03-03 22:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-03 22:09 John H. Spicer [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-03-03 22:17 Problem using fwmark -- how to mark packets from local host? Daniel Chemko
2004-03-03 22:43 ` John H. Spicer
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=404657A2.7080301@edg.com \
--to=jhs@edg.com \
--cc=netfilter@lists.netfilter.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