18 lines
		
	
	
		
			396 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			396 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Unit]
 | 
						|
Description=Create network namespace and tun device to %I
 | 
						|
StopWhenUnneeded=yes
 | 
						|
 | 
						|
[Service]
 | 
						|
 | 
						|
Type=notify
 | 
						|
NotifyAccess=all
 | 
						|
 | 
						|
RuntimeDirectory=nnssB%i
 | 
						|
 | 
						|
# Add SOCKS_PROXY environment variable to below file. E.g.
 | 
						|
# SOCKS_PROXY=socks5://127.0.0.1:9050
 | 
						|
EnvironmentFile=/etc/nnss/env_%i
 | 
						|
 | 
						|
ExecStart=/usr/lib/nnss/tunsocks.sh "%i" use_env setup
 | 
						|
ExecStop=/usr/lib/nnss/tunsocks.sh "%i" use_env cleanup
 |