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