From: Federico Alberto Sayd <fsayd@uncu.edu.ar>
To: netfilter@vger.kernel.org
Subject: Re: Force traffic
Date: Mon, 14 Jun 2010 10:17:34 -0300 [thread overview]
Message-ID: <4C162BEE.5010807@uncu.edu.ar> (raw)
In-Reply-To: <4C1513F3.5010508@abpni.co.uk>
El 13/06/10 14:22, Jonathan Tripathy escribió:
> Hi Everyone,
>
> Does anyone know any rules that I could use (using iptable, ebtables,
> or otherwise) that could force all traffic coming from an interface to
> go out via a particular interface? I'm using Xen and all the DomUs
> ("VMs" or "Guests") are connected to a linux bridge. I wish to force
> all traffic from these VMs to go out via the interface which is
> connected to my firewall (which itself is a filtering bridge). I wish
> to do this all at the "link-layer" if possible.
>
> I am lead to believe that in a linux bridge, all frames are sent to
> all ports (a bit like the old-school hubs), so it could just be a
> matter of blocking all traffic, except those which are for the
> firewall interface, using ebtables.
>
> Any help is very much appreciated.
>
> Thanks
>
> Jonathan
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
From iptables man:
physdev
This module matches on the bridge port input and output
devices enslaved to a bridge device. This module is a part of the
infrastructure that enables a transparent bridging IP firewall and
is only useful for kernel versions above version 2.5.44.
!] --physdev-is-out
Matches if the packet will leave through a bridge interface.
May be this module can be useful for you
next prev parent reply other threads:[~2010-06-14 13:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-13 17:22 Force traffic Jonathan Tripathy
2010-06-13 18:15 ` Jan Engelhardt
2010-06-13 18:17 ` Jonathan Tripathy
2010-06-14 13:17 ` Federico Alberto Sayd [this message]
2010-06-14 19:51 ` Narendra Choyal
2010-06-14 20:15 ` Jan Engelhardt
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=4C162BEE.5010807@uncu.edu.ar \
--to=fsayd@uncu.edu.ar \
--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