搭建ss科學上網,支援PC/手機用戶端和路由器。,sspc
作為碼農怎麼能不用Google呢?
我來做下shadowsocks服務的搭建。
Shadowsocks使用socks5代理,用於保護網路流量。在中國大陸被廣泛用於突破防火長城(GFW),以瀏覽被封鎖的內容。
Shadowsocks分為伺服器端和用戶端。在使用之前,需要先將伺服器端部署在支援Python的伺服器上面,然後通過用戶端串連並建立本地代理。
官網:https://shadowsocks.org/en/download/clients.html
要安裝FQ服務,首先需要一個外地伺服器,比如香港、美國伺服器。
大家可以去aws購買,還有免費伺服器可以使用。
一、ss安裝配置:
yum install python-setuptools && easy_install pippip install shadowsocks
ssserver -p 443 -k password -m aes-256-cfb --user nobody -d start
#或者
ssserver -c /shadow/shadow.cnf -d start
#shadow.cnf
{
"server":"11.41.72.21",
"port_password":{
"443":"password"
},
"timeout":300,
"method":"aes-256-cfb"
}
二、window用戶端:
window配置也很簡單
這樣就可以訪問google了。
三、linux用戶端的配置
sslocal -c /shadow/sslocal.cnf -d start#/shadow/sslocal.cnf {"server" : "47.88.105.243 ","server_port" : 443,"password" : "password","method" : "aes-256-cfb","remarks" : ""}
四、智能路由器的配置
現在很多智能路由器都是基於openwrt的開發的,openwrt是個微型linux,所以我們按照linux安裝配置即可。
參考安裝:https://github.com/shadowsocks/openwrt-shadowsocks
git clone https://github.com/shadowsocks/openwrt-shadowsocks.git package/shadowsocks-libev# 選擇要編譯的包 Network -> shadowsocks-libevmake menuconfig# 開始編譯make package/shadowsocks-libev/compile V=99
在路由器開啟ss後,我們就可以直接通過路由器FQ了,用戶端無需再配置。