Update systemd templates
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user