Update systemd templates
This commit is contained in:
parent
3156e64b26
commit
ea8d30d57d
@ -2,7 +2,7 @@
|
|||||||
Description=Detect WireGuard VPN activation
|
Description=Detect WireGuard VPN activation
|
||||||
|
|
||||||
[Path]
|
[Path]
|
||||||
PathExists=/sys/class/net/wg0
|
PathExists=/sys/class/net/wg0/dev_id
|
||||||
Unit=set-ip-routes.service
|
Unit=set-ip-routes.service
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -3,6 +3,7 @@ Description=Update IP routes after connecting to VPN
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
ExecStart=/usr/sbin/ip route del default dev wg0
|
ExecStart=/usr/sbin/ip route del default dev wg0
|
||||||
ExecStart=/usr/sbin/ip route add PH_DNS dev wg0
|
ExecStart=/usr/sbin/ip route add PH_DNS dev wg0
|
||||||
ExecStart=/usr/sbin/ip route add PH_NETWORK dev wg0
|
ExecStart=/usr/sbin/ip route add PH_NETWORK dev wg0
|
||||||
|
Loading…
Reference in New Issue
Block a user