Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

Current instructions (Ubuntu 16.04/16.10) to disable netfilter for bridges (for KVM)

$
0
0
Hello,
I started playing with KVM and setup a few bridges and VLANs for VMs. I found some articles and examples but all of them are for old distributions.

I currently run KVM on Kubuntu 16.10 on my laptop with single NIC connected over USB. I know that this isn’t nice combination but it works for me for testing. I setup bridges and VLANs using great script in: http://serverfault.com/questions/543...m-guests-linux
since I can make if functional using static configuration in /etc/network/interfaces for some reason.

One thing that I’m struggling with is how to disable iptables processing for all bridges for security and performance reasons.

I found some old articles that have instructions to add to /etc/sysctl.conf:
Code:

net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
net.bridge.bridge-nf-filter-pppoe-tagged = 0
net.bridge.bridge-nf-filter-vlan-tagged = 0

This setup causes error when: sysctl -p


in man page http://manpages.ubuntu.com/manpages/...ysctl.d.5.html
I found probably more current instructions.

My current configuration is:

new file: /etc/udev/rules.d/99-bridge.rules:
Code:

ACTION=="add", SUBSYSTEM=="module", KERNEL=="br_netfilter", RUN+="/lib/systemd/systemd-sysctl --prefix=/net/bridge"
new file: /etc/sysctl.d/bridge.conf:
Code:

net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
net.bridge.bridge-nf-filter-pppoe-tagged = 0 # I added this, not specified in man page
net.bridge.bridge-nf-filter-vlan-tagged = 0  # I added this, not specified in man page

Could you please tell me, is it correct configuration? How can I check that the configuration works? Thank you.

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>