From: Wang Jian <lark@linux.net.cn>
To: netfilter-devel@lists.netfilter.org
Subject: --in-interface and --out-interface issue on bridge
Date: Thu, 21 Apr 2005 15:41:58 +0800 [thread overview]
Message-ID: <20050421151458.03C6.LARK@linux.net.cn> (raw)
Hi,
During my test, I find that --in-interface doesn't work as I expected.
web server -- (eth0--br0--eth1) -- web client
# iptables -t mangle -A PREROUTING -i eth0 -p tcp --sport 80 \
-j MARK --set-mark 1
doesn't set mark to 1.
I google a while and read some pages that use such a rule for bridged
firewall.
# iptables -A FORWARD --in-interface eth0 --out-interface eth1 \
-j ACCEPT
I test this rule and fail
# iptables -t mangle -A FORWARD -i eth0 -p tcp --sport 80 \
-j MARK --set-mark 1
If I removed -i eth0 or use -i br0 instead, then the mark is set.
I looked into net/core/dev.c and net/bridge/* and didn't get clue about
this.
kernel is vanilla 2.6.11 with bridge packet filtering on.
--
lark
next reply other threads:[~2005-04-21 7:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-21 7:41 Wang Jian [this message]
2005-04-24 16:28 ` --in-interface and --out-interface issue on bridge Patrick McHardy
2005-04-24 17:05 ` Wang Jian
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=20050421151458.03C6.LARK@linux.net.cn \
--to=lark@linux.net.cn \
--cc=netfilter-devel@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 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.