dom0: qubes_netvm: fix stop() function
This commit is contained in:
parent
2b135f2aef
commit
a760741ecc
@ -60,13 +60,8 @@ stop()
|
||||
elif [ $NETVM = "dom0" ] ; then
|
||||
|
||||
echo -n $"Stopping Qubes networking in Dom0:"
|
||||
iptables -t nat -D POSTROUTING -s 10.0.0.0/16 '!' -d 10.0.0.0/16 -j MASQUERADE
|
||||
iptables -D INPUT -i br0 -s 10.0.0.0/16 -j ACCEPT || exit 1
|
||||
iptables -D FORWARD -i br0 -s 10.0.0.0/16 -j ACCEPT || exit 1
|
||||
iptables -D FORWARD -o br0 -d 10.0.0.0/16 -m state --state ESTABLISHED,RELATED -j ACCEPT || exit 1
|
||||
iptables -t nat -F PREROUTING
|
||||
|
||||
|
||||
killall dnsmasq
|
||||
ifconfig br0 down
|
||||
brctl delbr br0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user