• Install tsocks:
sudo apt install tsocks
  • Configuring ports:
vi /etc/tsocks.conf
server = localhost 

server_type = 5

server_port = 10086
  • Using a proxy:
tsocks wget www.youtube.com