2009-05-04 18:38:09 +02:00
|
|
|
Open SuSEfirewall2 FORWARD rule when use xen nat
|
|
|
|
|
2011-09-15 23:43:21 +02:00
|
|
|
Index: xen-4.1.2-testing/tools/hotplug/Linux/network-nat
|
2009-08-01 11:53:46 +02:00
|
|
|
===================================================================
|
2011-09-15 23:43:21 +02:00
|
|
|
--- xen-4.1.2-testing.orig/tools/hotplug/Linux/network-nat
|
|
|
|
+++ xen-4.1.2-testing/tools/hotplug/Linux/network-nat
|
2010-01-16 01:12:54 +01:00
|
|
|
@@ -83,6 +83,7 @@ function dhcp_stop()
|
2009-05-04 18:38:09 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2010-01-16 01:12:54 +01:00
|
|
|
@@ -90,6 +91,7 @@ op_start() {
|
2009-05-04 18:38:09 +02:00
|
|
|
op_stop() {
|
|
|
|
[ "$dhcp" != 'no' ] && dhcp_stop
|
|
|
|
iptables -t nat -D POSTROUTING -o ${netdev} -j MASQUERADE
|
2009-08-01 11:53:46 +02:00
|
|
|
+ iptables -P FORWARD DROP
|
2009-05-04 18:38:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|