MACOS - Shadowsocks使用方法
翻牆程式,從Evernote上拿回紀錄。
安裝 Shadowsocks
brew install shadowsocks-libev
設定 shadowsocks-libev.json
{
"server":"(server IP)",
"server_port":(server port),
"local_address": "(local address)",
"local_port":(local port),
"password":"(password)",
"timeout":600,
"method":"aes-256-cfb",
"fast_open": false
}
開啟 Shadowsocks
ss-local -c /usr/local/etc/shadowsocks-libev.json
設定開機後自動開啟 Shadowsocks
ln -sfv /usr/local/opt/shadowsocks-libev/*.plist ~/Library/LaunchAgents
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.shadowsocks-libev.plist
關閉自動開啟 Shadowsocks
launchctl remove homebrew.mxcl.shadowsocks-libev
關閉 Shadowsocks (Kill port)
lsof -ti:1901 | xargs kill -9
其他設定
Google Chrome => SwitchyOmega => 設定Sock5
是咁的,其實有GUI版嘅Shadowsocks可以用,叫Shadowsocks X。其實唔洗裝得咁辛苦(逃