Support direct socks proxy without ssh
This commit is contained in:
		
							
								
								
									
										17
									
								
								nnssB@.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								nnssB@.service
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
[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
 | 
			
		||||
		Reference in New Issue
	
	Block a user