Created
July 4, 2019 00:20
-
-
Save buptsb/129d9cf0d93264f23ac10152e7fe9ba3 to your computer and use it in GitHub Desktop.
Phicomm N1 as router
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
nohup /root/ssr/installed/bin/ss-local -u -c /root/shadowsocksr.json >/dev/null 2>&1 & | |
nohup /root/overture/overture-linux-arm64 -c /root/overture/config.json >/dev/null 2>&1 & | |
nohup /root/tun2socks-linux-arm64 \ | |
-proxyType socks \ | |
-proxyServer localhost:12345 \ | |
-tunName tun0 \ | |
-tunAddr 241.0.0.2 -tunGw 241.0.0.1 \ | |
-loglevel debug \ | |
>/dev/null 2>&1 & | |
ip tuntap add dev tun0 mode tun | |
ip addr add 241.0.0.1 dev tun0 | |
ip link set tun0 up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment