163148b426
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=87c8ac43897718b61dbcbca0296d6c2a
23 lines
698 B
Diff
23 lines
698 B
Diff
Open SuSEfirewall2 FORWARD rule when use xen nat
|
|
|
|
Index: xen-4.0.1-testing/tools/hotplug/Linux/network-nat
|
|
===================================================================
|
|
--- xen-4.0.1-testing.orig/tools/hotplug/Linux/network-nat
|
|
+++ xen-4.0.1-testing/tools/hotplug/Linux/network-nat
|
|
@@ -83,6 +83,7 @@ function dhcp_stop()
|
|
op_start() {
|
|
echo 1 >/proc/sys/net/ipv4/ip_forward
|
|
iptables -t nat -A POSTROUTING -o ${netdev} -j MASQUERADE
|
|
+ iptables -P FORWARD ACCEPT
|
|
[ "$dhcp" != 'no' ] && dhcp_start
|
|
}
|
|
|
|
@@ -90,6 +91,7 @@ op_start() {
|
|
op_stop() {
|
|
[ "$dhcp" != 'no' ] && dhcp_stop
|
|
iptables -t nat -D POSTROUTING -o ${netdev} -j MASQUERADE
|
|
+ iptables -P FORWARD DROP
|
|
}
|
|
|
|
|