Files moved from scripts.
This commit is contained in:
20
service/tun2socks.service
Normal file
20
service/tun2socks.service
Normal file
@@ -0,0 +1,20 @@
|
||||
# Automatically generated by systemd-sysv-generator
|
||||
|
||||
[Unit]
|
||||
Description=tun0 to SOCKS5 tunel
|
||||
Before=shutdown.target
|
||||
After=network-online.target local-fs.target
|
||||
Wants=network-online.target ssh_socks5.service
|
||||
Conflicts=shutdown.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
GuessMainPID=no
|
||||
RemainAfterExit=yes
|
||||
WorkingDirectory=/tmp
|
||||
ExecStartPre=/usr/local/sbin/tun2socks_pre.sh
|
||||
ExecStart=/sbin/ip netns exec soghancq /usr/local/sbin/tun2socks --tundev tun0 --netif-ipaddr 10.0.0.2 --netif-netmask 255.255.255.0 --socks-server-addr 127.0.0.1:1080 --udpgw-remote-server-addr 127.0.0.1:7300
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user