0caa7fcf75
Stop IP forwarding when stopping qubes-network service (which initially enables it). This makes ordering against qubes-firewall safe - firewall is applied before allowing IP forward and then is removed when IP forward is already disabled. Fixes QubesOS/qubes-issues#5599
15 lines
363 B
Desktop File
15 lines
363 B
Desktop File
[Unit]
|
|
Description=Qubes network forwarding setup
|
|
ConditionPathExists=/var/run/qubes-service/qubes-network
|
|
Before=network.target
|
|
After=network-pre.target qubes-iptables.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/lib/qubes/init/network-proxy-setup.sh
|
|
ExecStop=/usr/lib/qubes/init/network-proxy-stop.sh
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|