Ubuntu – how to set socks5 proxy in the terminal

command linesshsyslinux

I am a beginner using linux, I would like to connecting the terminal to the local proxy socks made by my ssh (Dynamic Port Forwarding),

so is there a way to set up a proxy socks5 in the terminal?

or should use an additional module,

or have to go through another tool,

thank you for your attention

Best Answer

I'm using Proxychains, an easy to use command line tool. Usage:

sudo proxychains4 apt-get update

You can configure you proxy in the /etc/proxychains.conf

[ProxyList]

socks5  127.0.0.1 12345