如何在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.