如何在Ubuntu 16 Xenial Xerus上設置自己的Shadowsocks伺服器



Shadowsocks是一個開源的socks5代理,可用於繞過防火牆並取消阻止網站。該應用程序最初是由Github上的一個名為clowwindy的中文開發的,現在已經以各種編程語言(例如C,C ++,Go,Python等)實現了
主頁:-https://shadowsocks.org/en/index.html
GitHub:-https://github.com/shadowsocks
易於安裝python-pip python-m2crypto -y
pip安裝shadowsocks
gedit /etc/shadowsocks.json
{
「 server」:「 your_server_ip」,
「 server_port」:8000,
「 local_port」:1080,
「 password」:「 your_passwd」,
「超時」:600,
「方法」:「 aes-256-cfb」
}

每個欄位的說明:
伺服器:您的主機名或伺服器IP(IPv4 / IPv6)。
server_port:伺服器埠號。
local_port:本地埠號。
密碼:用於加密傳輸的密碼。
超時:連接超時(以秒為單位)。
方法:加密方法,「 bf-cfb」,「 aes-256-cfb」,「 des-cfb」,「 rc4」等。默認值為表,這是不安全的。建議使用「 aes-256-cfb」。

要啟動shadowsocks伺服器:-sudo ssserver -c /etc/shadowsocks.json -d start
netstat -tlpn
停止shadowsocks伺服器:-sudo ssserver -d stop
要重啟Shadowsocks伺服器:-sudo ssserver -c /etc/shadowsocks.json -d restart
要檢查Shadowsocks日誌:-less /var/log/shadowsocks.log
ssserver-幫助
男子shadowsocks-libev。

4 comments
  1. Add that there will be an error in the case where the OpenSSL is 1.1.0 with a later version, which needs to be modified as follows

    according to this link you can find any string like:

    libcrypto.EVP_CIPHER_CTX_cleanup.argtypes = (c_void_p,)

    and replace with:

    libcrypto.EVP_CIPHER_CTX_reset.argtypes = (c_void_p,)

    also, replace this part:

    libcrypto.EVP_CIPHER_CTX_cleanup

    with

    libcrypto.EVP_CIPHER_CTX_reset

    in the file openssl.py , which is located somewhere like /usr/lib/python2.7/dist-packages/shadowsocks/crypto/openssl.py , you could find it.

    … and the problem would be solved. -by eXtrem0us (github)

  2. i notice that you used local ip. Then how i can connect my mobile or other device to my shadowshock without being there in the network? another thing is. do i need to port forward so that it i can access it even im outside of the network? Then what port do i need to forward?

Comments are closed.