enabling firewalling of bridged interfaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux