Using the socks proxy

  

under the Linux command line In this magical country, we are inseparable from the agent for a moment. Not only because of what you already know, but also because the IP address assigned to us is insufficient.

Because Linux CL uses http_proxy=”http://proxy-ip:port” this environment variable as http proxy, so for a long time, I once thought that the socks proxy also has a socks_proxy environment variable. . It was only recently that I discovered that I had always been so stupid.

To use the socks proxy under Linux CL, you can use tsocks. The official website is here: http://tsocks.sourceforge.net/However, it has not been updated for a while. However, this software package, the general distribution of the software source is believed to have it, you can install it directly.

After the installation is complete, edit the /etc/tsocks.conf file and note the following 4 lines:

local = 192.168.1.0/255.255.255.0 //Local not using proxy

server = 192.168.1.1 //proxy ip

server_port = 1080 //port

server_type = 5 //socks 4 or 5

After saving, start with tsocks , such as:

tsocks apt-get update


Copyright © Windows knowledge All Rights Reserved