]> git.pld-linux.org Git - packages/xen.git/blob - xen-net-disable-iptables-on-bridge.patch
2f33eb4fcd19d32159c4a000f0c69c1f50e7b7c7
[packages/xen.git] / xen-net-disable-iptables-on-bridge.patch
1 --- xen-4.5.1/tools/hotplug/Linux/vif-bridge.orig       2015-10-01 17:51:47.613981230 +0200
2 +++ xen-4.5.1/tools/hotplug/Linux/vif-bridge    2015-10-01 17:51:51.330647734 +0200
3 @@ -93,8 +93,6 @@
4          ;;
5  esac
6  
7 -handle_iptable
8 -
9  call_hooks vif post
10  
11  log debug "Successful vif-bridge $command for $dev, bridge $bridge."
12 diff -dur -x '*.orig' -x '*.rej' -x '*~' xen-4.2.0.orig/tools/hotplug/Linux/xen-network-common.sh xen-4.2.0/tools/hotplug/Linux/xen-network-common.sh
13 --- xen-4.2.0.orig/tools/hotplug/Linux/xen-network-common.sh    2012-09-17 12:21:18.000000000 +0200
14 +++ xen-4.2.0/tools/hotplug/Linux/xen-network-common.sh 2012-10-22 13:05:02.000000000 +0200
15 @@ -115,6 +115,13 @@
16         brctl addbr ${bridge}
17         brctl stp ${bridge} off
18         brctl setfd ${bridge} 0
19 +       # Setting these to zero stops guest<->LAN traffic
20 +       # traversing the bridge from hitting the *tables
21 +       # rulesets. guest<->host traffic still gets processed
22 +       # by the host's iptables rules so this isn't a hole
23 +       sysctl -q -w "net.bridge.bridge-nf-call-arptables=0"
24 +       sysctl -q -w "net.bridge.bridge-nf-call-ip6tables=0"
25 +       sysctl -q -w "net.bridge.bridge-nf-call-iptables=0"
26      fi
27  }
28  
This page took 0.041616 seconds and 2 git commands to generate.