From: Patrick McHardy <kaber@trash.net>
To: Fredrik Ax <frax@axnet.nu>
Cc: netfilter@vger.kernel.org
Subject: Re: iptables MARK + ip rule fwmark on locally generated packets
Date: Fri, 22 Jan 2010 12:41:07 +0100 [thread overview]
Message-ID: <4B598ED3.9060109@trash.net> (raw)
In-Reply-To: <20100122111257.GH23731@ioi.dk>
Fredrik Ax wrote:
> On Fri, Jan 22, 2010 at 11:53:45AM +0100, Patrick McHardy wrote:
>>> So, to accomplish this I would have to oute it through a dummy
>>> interface to make iptables able to mark it before it goes out?
>> You need some criteria for your routing rules that is available
>> when the socket is routed. That's everything but the packet mark.
>> Using a seperate device will work.
>>
>> For ethernet, the macvlan device might be a good choice if you
>> don't mind using different MAC addresses for each IP.
>
> Thanks, I'll have a look at it ...
>
> Just one more question, the host is actually run as a domU on XEN and
> all of the eth2-4 interfaces are on a in dom0 created bridge, bridging
> in a vlan where the tagged traffic is on a blanace-rr bond-device.
>
> Would it create any problems creating a macvlan device on top of this?
No, that should be fine.
next prev parent reply other threads:[~2010-01-22 11:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-22 10:07 iptables MARK + ip rule fwmark on locally generated packets Fredrik Ax
2010-01-22 10:09 ` Patrick McHardy
2010-01-22 10:31 ` Fredrik Ax
2010-01-22 10:53 ` Patrick McHardy
2010-01-22 11:12 ` Fredrik Ax
2010-01-22 11:39 ` SOLVED: " Fredrik Ax
2010-01-22 11:41 ` Patrick McHardy [this message]
2010-01-22 12:31 ` Mart Frauenlob
2010-01-22 10:15 ` Fredrik Ax
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=4B598ED3.9060109@trash.net \
--to=kaber@trash.net \
--cc=frax@axnet.nu \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox