###shadowsocket 搬瓦工上买个便宜的主机,一键安装 ss 服务,然后下个 ss 客户端配置一下, 简单轻松,平时浏览网页之类的,够用!
###proxychain 如果想要在命令行下下载或者安装一些必须翻墙的工具,那 ss 可能就不够用了。 proxychain 可以胜任大部分这些需求,
$ brew install proxychains-ng
然后配置一些 config
strict_chain
proxy_dns
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0
quiet_mode
[ProxyList]
socks5 127.0.0.1 1080
使用的时候
$ proxychains4 [command]
eg:
$ proxychains4 curl https://www.google.com
###polipo 某次需要安装 go 的一些依赖,
$ proxychains4 source tools.sh
发现居然不好用了,报错说 no such file, 同事推荐用 polipo,相当于架了一个 http 代理链接到 socks
$ brew install polipo
按照提示设置开机启动 然后在~/目录下面新建.polipo
proxyAddress = "0.0.0.0"
proxyPort = 8123
allowedClients = 127.0.0.1, 10.0.1.0/24
allowedPorts = 1-65535
tunnelAllowedPorts = 1-65535
proxyName = "localhost"
cacheIsShared = false
socksParentProxy = "127.0.0.1:1080"
socksProxyType = socks5
# chunkHighMark = 33554432
# diskCacheRoot = ""
# localDocumentRoot = ""
disableLocalInterface = true
disableConfiguration = true
dnsUseGethostbyname = yes
disableVia = true
censoredHeaders = from,accept-language,x-pad,link
censorReferer = maybe
# maxConnectionAge = 5m
# maxConnectionRequests = 120
# serverMaxSlots = 8
# serverSlots = 2
然后就能用普通代理一样使用了。
export http_proxy=http://127.0.0.1:8123
export https_proxy=$http_proxy
curl https://www.google.com