Ssh.

Проброс socks через сервер:

ssh -D 1080 -q -C -N <host>

Можно добавить -f (Requests ssh to go to background just before command execution.)

затем:

export ALL_PROXY=socks5h://localhost:1080
curl https://ifconfig.me/

# or with httpie

http --download --proxy=https:socks5h://localhost:1080 https://ifconfig.me

Важный момент - wget не умеет работать через socks5, и не понимает переменную ALL_PROXY (понимает http_proxy / https_proxy), можно через curl URL > path

comments powered by Disqus