dom0: qubes_netvm: fix stop() function
This commit is contained in:
parent
2b135f2aef
commit
a760741ecc
@ -60,13 +60,8 @@ stop()
|
|||||||
elif [ $NETVM = "dom0" ] ; then
|
elif [ $NETVM = "dom0" ] ; then
|
||||||
|
|
||||||
echo -n $"Stopping Qubes networking in Dom0:"
|
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 -t nat -F PREROUTING
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
killall dnsmasq
|
|
||||||
ifconfig br0 down
|
ifconfig br0 down
|
||||||
brctl delbr br0
|
brctl delbr br0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user