Skip to content

Instantly share code, notes, and snippets.

@majudhu
Last active February 27, 2022 07:56
Show Gist options
  • Save majudhu/5ac9743d43b809a970dacae97f8644cb to your computer and use it in GitHub Desktop.
Save majudhu/5ac9743d43b809a970dacae97f8644cb to your computer and use it in GitHub Desktop.
git npm ssh socks proxy
internal: 0.0.0.0 port=8888
external: eth0
socksmethod: none
clientmethod: none
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}
proxy_dns 1.1.1.1
socks5 127.0.0.1 9050
sudo apt install dante-server
sudo service danted restart
ssh -R 9050:127.0.0.1:9050 user@host
curl -x socks5://127.0.0.1:9050 icanhazip.com
sudo apt install proxychains4
proxychains curl icanhazip.com
proxychains git pull
proxychains npm i
# none of these worked :(
#git config --global http.proxy socks5://127.0.0.1:9050
#npm config set proxy socks5://127.0.0.1:9050
#npm config set https-proxy socks5://127.0.0.1:9050
#export PROXYCHAINS_SOCKS5=8888
#export PROXY_DNS_SERVER=8.8.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment