local socks5 proxy through ssh
- configuration(configs/local.yaml)
ssh:
ssh_address: remote_host:22
ssh_user: account
ssh_password: password
ssh_private_key: /home/account/.ssh/id_rsa
ssh_known_hosts: /home/account/.ssh/known_hosts
socks5_user: hello
socks5_password: world
noauth:
ssh_address: remote_host:22
ssh_user: account
ssh_password: password
ssh_private_key: /home/account/.ssh/id_rsa
ssh_known_hosts: /home/account/.ssh/known_hosts
- compile
make build
- run
./target/main ssh -config=configs/local.yaml -addr=127.0.0.1:1080
- release
make release
- commandlines with socks5 proxy
proxy=socks5://hello:world@127.0.0.1:1080
https_proxy=$proxy git pull
https_proxy=$proxy git push
https_proxy=$proxy curl -4 https://icanhazip.com
curl -x "$proxy" https://icanhazip.com
- web browser with sock5 proxy (Neither Firefox nor Chromium supports SOCKS5 with authentication)
proxy=socks5h://127.0.0.1:1080
chromium --disable-extensions --incognito --proxy-server="$proxy"
# mannual config proxy in settings of firefox
firefox -p proxy