Last active
October 10, 2019 08:16
-
-
Save ytlm/faeb4da6135fe51e655a5137cbb2fe19 to your computer and use it in GitHub Desktop.
sslocal privoxy socks5 to http proxy; proxychains
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sslocal | |
{ | |
"server": "", | |
"server_port": 15938, | |
"method": "", | |
"password": "", | |
"local_address": "127.0.0.1", | |
"local_port": 8700 | |
} | |
proxychains | |
[ProxyList] | |
socks5 127.0.0.1 8700 | |
privoxy | |
forward-socks5t / 127.0.0.1:8700 . | |
listen-address 127.0.0.1:8118 | |
go get | |
http_proxy=127.0.0.1:8118 go get -u google.golang.org/grpc | |
git | |
git config --global http.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
os proxy | |
export http_proxy=127.0.0.1:8118 | |
设置android studio代理 | |
1,`export _JAVA_OPTIONS="-DsocksProxyHost=<YourProxyHost> -DsocksProxyPort=<YourProxyPort>"`<br> | |
"YourProxyHost"和"YourProxyPort"是自己的socks代理的ip和port<br><br> | |
2,安装Privoxy,将socks代理转换成http代理<br> | |
修改配置文件`/etc/privxoy/config` <br> | |
添加或修改`listen-address 127.0.0.1:8118` 此处为http代理的ip和port<br> | |
添加或修改`forward-socks5 / 127.0.0.1:1080 .` 此处为socks的代理ip和port<br> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment