This script sets up a L3 proxy backed by Shadowsocks
Shadowsocks is an application level (SOCKS5) proxy that can be used only when your application supports it.
With tun2socks, you can convert any application level proxy into VPN, which means your routing table changes and your network packets will be sent through a virtual network interface (created by tun2socks). Eventually all TCP/UDP traffic on your system will go through Shadowsocks as if Shadowsocks was a real gateway.
As we all know, DNS in China is heavily polluted. It's necessary for us to use DoH (DNS over HTTPS), which can be proxied by Shadowsocks. Hence, this project uses doh-proxy for such purposes.
- Edit
ss_config.json
- Run
ss-switch.bat
- Check output of the script, and test your connectivity
- Run
ss-switch.bat
again to disable ss-tun, and follow on-screen instructions
- Edit
ss_config.json
- Run
install.sh
- Use
systemctl start/stop ss-tun.service
to toggle
Put required binaries in $PATH
- Edit
ss_config.json
- Run
./ss-tun
to start - Run
./ss-tun stop
to stop