酸酸+混淆(Shadowsocks+obfs)搭建教程

机场新手先看以下两篇:

由于纯酸酸会被识别,用一段时间就会被阻断,用v2或其他速度上都会下降很多,前段时间配了个酸酸+混淆测试了下,速度上提升了10倍以上,自己用了10多天没出现过任何问题,所以今天整理了一下配置步骤供大家参考。

搭建系统版本:Ubuntu 16.04

通过Ubuntu PPA安装shadowsocks-libev

sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
sudo apt-get update
sudo apt install shadowsocks-libev

安装simple-obfs

sudo apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev libpcre3-dev libev-dev asciidoc xmlto automake
git clone https://github.com/shadowsocks/simple-obfs.git
cd simple-obfs
git submodule update --init --recursive
./autogen.sh
./configure && make
sudo make install

使Obfs-server能够监听端口443

setcap cap_net_bind_service+ep /usr/local/bin/obfs-server

服务端配置

Add below to /etc/shadowsocks-libev/config.json

{
    "server":"0.0.0.0",
    "server_port":443,
    "local_port":1080,
    "password":"ChangeMe",
    "timeout":300,
    "method":"chacha20-ietf-poly1305",
    "workers":8,
    "plugin":"obfs-server",
    "plugin_opts": "obfs=tls;obfs-host=www.bing.com",
    "fast_open":true,
    "reuse_port":true
}

启动shadowsocks-libev服务

systemctl enable shadowsocks-libev.service
systemctl start shadowsocks-libev.service
systemctl status shadowsocks-libev.service

 

速度优化

安装并启用BBR

apt install --install-recommends linux-generic-hwe-16.04
apt autoremove
modprobe tcp_bbr
echo "tcp_bbr" >> /etc/modules-load.d/modules.conf
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p

修改配置

Add below to /etc/sysctl.d/local.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_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_mem = 25600 51200 102400
net.ipv4.tcp_rmem = 4096 87380 67108864
net.ipv4.tcp_wmem = 4096 65536 67108864
net.ipv4.tcp_mtu_probing = 1

重启服务器

reboot

按服务端配置信息配置客户端即可愉快的上外网了,客户端和obfs插件可到群文件下载,如果不会搭建的可以联系群主搭建,需要打赏才能帮搭.

[table “1” not found /]

 

 

其他文章:

赞 (16)

评论 0

文章评论已关闭!