42ce721063
Relevant only if using dom0 as netvm. It is already done in "real" netvm.
26 lines
935 B
Plaintext
26 lines
935 B
Plaintext
# Generated by iptables-save v1.4.5 on Mon May 31 14:15:17 2010
|
|
*nat
|
|
:PREROUTING ACCEPT [0:0]
|
|
:POSTROUTING ACCEPT [0:0]
|
|
:OUTPUT ACCEPT [0:0]
|
|
-A POSTROUTING -s 10.0.0.0/16 -d 224.0.0.0/8 -j ACCEPT
|
|
-A POSTROUTING -s 10.0.0.0/16 ! -d 10.0.0.0/16 -j MASQUERADE
|
|
COMMIT
|
|
# Completed on Mon May 31 14:15:17 2010
|
|
# Generated by iptables-save v1.4.5 on Mon May 31 14:15:17 2010
|
|
*filter
|
|
:INPUT ACCEPT [0:0]
|
|
:FORWARD ACCEPT [0:0]
|
|
:OUTPUT ACCEPT [0:0]
|
|
-A INPUT -i br+ -p udp -m udp --dport 68 -j DROP
|
|
-A INPUT -i vif+ -p udp -m udp --dport 68 -j DROP
|
|
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
|
|
-A INPUT -p icmp -j ACCEPT
|
|
-A INPUT -i lo -j ACCEPT
|
|
-A INPUT -j REJECT --reject-with icmp-host-prohibited
|
|
-A FORWARD -d 10.0.0.0/16 -o br0 -m state --state RELATED,ESTABLISHED -j ACCEPT
|
|
-A FORWARD -s 10.0.0.0/16 -i br0 -j ACCEPT
|
|
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
|
|
COMMIT
|
|
# Completed on Mon May 31 14:15:17 2010
|