From: Jared <list-virt@legroom.net>
To: netfilter@vger.kernel.org
Subject: enabling firewalling of bridged interfaces
Date: Sun, 22 Jul 2012 16:23:55 -0500 [thread overview]
Message-ID: <500C6F6B.7090908@legroom.net> (raw)
Hi.
What do I need to do to enable iptables support for bridged interfaces? I'm
setting up a Gentoo/KVM VM host, and iptables will handle all traffic
to/from the host system, but not any of the guests. I seem to be missing
some key kernel config option for this (specifically, whatever provides
net.bridge.bridge-nf-call-iptables), but can't figure out what (more details
below). Is there a specific list of options I should enable, or perhaps a
reference guide for this somewhere?
Long version:
This is going to replace an aging Debian-based Xen VM host, where iptables
firewalling of the guests from the host works perfectly fine. On the
current system, iptables seems to completely ignore (and, thus, permit) all
traffic to/from the bridged interfaces.
According to the libvirt wiki
(http://wiki.libvirt.org/page/Networking#Bridged_networking_.28aka_.22shared_physical_device.22.29),
the following sysctl parameters should be enabled to see bridged traffic:
net.bridge.bridge-nf-call-ip6tables
net.bridge.bridge-nf-call-iptables
net.bridge.bridge-nf-call-arptables
But, those values don't exist on my Gentoo host. Similarly, the
/proc/sys/net/bridge directory doesn't exist on on my Gentoo host, whereas
it does exist on Debian and all files within that directory are set to 1.
Since I compiled my own kernel, I'm assuming I must be missing something
required for this. Problem is, I can't figure out what. Based on what I've
read, support for "802.1d Ethernet Bridging" and "Bridged IP/ARP packets
filtering" should be all I need, which I do have enabled:
CONFIG_BRIDGE=y
CONFIG_BRIDGE_NETFILTER=y
# CONFIG_BRIDGE_NF_EBTABLES is not set
# CONFIG_BRIDGE_IGMP_SNOOPING is not set
# CONFIG_EDAC_SBRIDGE is not set
Any ideas what else I'm missing? Here's my full kernel config, if it'd help:
http://www.legroom.net/public/config-kvm
I've been beating my head against this for a while now. Would appreciate
any guidance.
Thanks!
--
Jared
next reply other threads:[~2012-07-22 21:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-22 21:23 Jared [this message]
2012-07-22 22:38 ` enabling firewalling of bridged interfaces Jared
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=500C6F6B.7090908@legroom.net \
--to=list-virt@legroom.net \
--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.