2023-05-29 19:51:46 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Update IP routes after connecting to VPN
|
2023-06-04 12:05:00 +02:00
|
|
|
BindsTo=sys-subsystem-net-devices-wg0.device
|
2023-05-29 19:51:46 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2023-06-03 18:40:42 +02:00
|
|
|
RemainAfterExit=yes
|
2023-05-29 19:51:46 +02:00
|
|
|
ExecStart=/usr/sbin/ip route del default dev wg0
|
2023-06-03 12:33:17 +02:00
|
|
|
ExecStart=/usr/sbin/ip route add PH_DNS dev wg0
|
|
|
|
ExecStart=/usr/sbin/ip route add PH_NETWORK dev wg0
|
2023-06-04 10:55:59 +02:00
|
|
|
ExecStart=/usr/bin/bash /storage/libreelec-conf/set-dns.sh
|
|
|
|
ExecStop=/usr/bin/bash /storage/libreelec-conf/unset-dns.sh
|