Date Tags proxy

推荐使用digital ocean的vps, 5刀开户再送两月。

安装shadowsocks

sudo vi /etc/apt/sources.list
deb http://shadowsocks.org/debian wheezy main

sudo apt-get update
sudo apt-get install shadowsocks-libev

配置

sudo vim /etc/shadowsocks-libev/config.json

{
    "server":"0.0.0.0",
    "server_port": THE_NUMBER_YOU_LIKE,
    "local_port":1080,
    "password":"you_password",
    "timeout":600,
    "method":"aes-256-cfb"
}

启动

sudo service shadowsocks-libev start

优化

sudo vi /etc/security/limits.conf

在最后添加一下内容:

* soft nofile 51200
* hard nofile 51200

sudo vi /etc/sysctl.conf

覆盖为一下内容:

fs.file-max = 51200

net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.core.netdev_max_backlog = 250000
net.core.somaxconn = 4096

net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 0
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.ip_local_port_range = 10000 65000
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_rmem = 4096 87380 67108864
net.ipv4.tcp_wmem = 4096 65536 67108864
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_congestion_control = hybla

重启生效,查看是否载入hybla

sysctl net.ipv4.tcp_available_congestion_control

下载客户端 Mac OSX

http://shadowsocks.org/en/download/clients.html

设置到Auto Proxy mode, server preferences: custom

chrome 设置 SwitchySharp

导入goagent 的设置,然后添加shadowsocks profile, 修改127.0.0.1 1080 sock5

参考

  • http://shadowsocks.org/en/config/advanced.html