![shadowsocks client linux shadowsocks client linux](http://wiki.dreamrunner.org/public_html/Misc/MiscNotes/Files/shadowsocks-1.png)
- #Shadowsocks client linux install#
- #Shadowsocks client linux upgrade#
- #Shadowsocks client linux full#
Iptables -t nat -A SHADOWSOCKS -p tcp -j REDIRECT -to-ports 12345 # Anything else should be redirected to shadowsocks's local port Iptables -t nat -A SHADOWSOCKS -d 240.0.0.0/4 -j RETURN Iptables -t nat -A SHADOWSOCKS -d 224.0.0.0/4 -j RETURN Iptables -t nat -A SHADOWSOCKS -d 192.168.0.0/16 -j RETURN Iptables -t nat -A SHADOWSOCKS -d 172.16.0.0/12 -j RETURN Iptables -t nat -A SHADOWSOCKS -d 169.254.0.0/16 -j RETURN Iptables -t nat -A SHADOWSOCKS -d 127.0.0.0/8 -j RETURN Iptables -t nat -A SHADOWSOCKS -d 10.0.0.0/8 -j RETURN Iptables -t nat -A SHADOWSOCKS -d 0.0.0.0/8 -j RETURN # See ashi009/bestroutetb for a highly optimized CHN route list.
#Shadowsocks client linux full#
# See Wikipedia and RFC5735 for full list of reserved networks. # Ignore LANs and any other addresses you'd like to bypass the proxy # Ignore your shadowsocks server's addresses
![shadowsocks client linux shadowsocks client linux](https://pcmaintenant.net/wp-content/uploads/2018/10/shadowsocks-1.jpg)
You can configure your Linux-based box or router to proxy all TCP traffic transparently, which is handy if you use an OpenWRT-powered router. The latest shadowsocks-libev has provided a redir mode. Path to the working directory of ss-manager. (only available in server and manager mode) (only available in local and server mode) The default cipher is chacha20-ietf-poly1305.įor servers: Specify the local address to useĬonnections to remote servers on behalf of theįor clients: Specify the local address to use s Host name or IP address of your remote server.
#Shadowsocks client linux install#
You can install it in either way, pkg or ports. Shadowsocks-libev is available in FreeBSD Ports Collection. You may need to manually install missing softwares. # Installation of MbedTLS export MBEDTLS_VER=2.6.0 # Installation of libsodium export LIBSODIUM_VER=1.0.16
![shadowsocks client linux shadowsocks client linux](http://startvpn.com/rs/fckupload/openwrt.png)
![shadowsocks client linux shadowsocks client linux](https://www.bolehvpn.net/wp-content/uploads/2017/03/06-adding-server.png)
Sudo pacman -S gettext gcc autoconf libtool automake make asciidoc xmlto c-ares libev Sudo yum install gettext gcc autoconf libtool automake make asciidoc xmlto c-ares-devel libev-devel Sudo apt-get install -no-install-recommends gettext build-essential autoconf libtool libpcre3-dev asciidoc xmlto libev-dev libc-ares-dev automake libmbedtls-dev libsodium-dev Use munin or any server monitor tools to generate the graph of your TCP connections.# Installation of basic build dependencies # Debian / Ubuntu Of course, remember to execute sysctl -p to reload the config at runtime. Choose the TCP congestion algorithm for large latency and high throughput.Enlarge the queues and buffers as large as possible.Reuse ports and conections as soon as possible.The priciples of tuning parameters for shadowsocks are Then, before you start the shadowsocks server, set the ulimit first ulimit -n 51200 Step 2, Tune the kernel parameters To handle thousands of concurrent TCP connections, we should increase the limit of file descriptors opened.Įdit the nf vi /etc/security/nf Step 1, increase the maximum number of open file descriptors
#Shadowsocks client linux upgrade#
First of all, upgrade your Linux kernel to 3.5 or later.