Any software in Linux accesses the Internet through proxy (non-vpn)

Source: Internet
Author: User
Tags proxychains
In Linux, any software accesses the Internet through proxy (non-vpn). in windows, SocksCap32, ProxyCap, FreeCap, and Proxifier can access the Internet through proxy. This blog has previously introduced: http://www.2cto.com/net/201207/142900.html ,...
In Linux, any software accesses the Internet through proxy (non-vpn). in windows, SocksCap32, ProxyCap, FreeCap, and Proxifier can access the Internet through proxy. This blog has previously introduced: http://www.2cto.com/net/201207/142900.html In ubuntu and other linux releases, how does one implement it? Of course, the premise is that you must first link the ssh encrypted channel or support the socks4/5 connection method. After preparation, you can use the following two methods. Method 1: install proxychainssudo apt-get install proxychains to modify the configuration file (/etc/proxychains. conf), as follows: www.2cto.com # proxychains. conf VER 2.0 # HTTP, SOCKS4, SOCKS5 tunneling proxifier. # The option below identifies how the ProxyList is treated. # only one option shoshould be uncommented at time, # otherwise the last appearing option will be accepted # Dynamic-Each connection will be done via chained proxies # all pro Xies chained in the order as they appear in the list # at least one proxy must be online to play in chain # (dead proxies are skipped) # otherwise EINTR is returned to the app # Strict-Each connection will be done via chained proxies # all proxies chained in the order as they appear in the list # all proxies must be online play in chain # otherwise EINTR is returned to the app # www.2cto.com # Rando M-Each connection will be done via random proxy # (or proxy chain, see chain_len) from the list # this option is good for scans dynamic_chain # strict_chain # random_chain # Make sense only if random_chainchain_len = 2 # Quiet mode (no output) # quiet_mode # Write stats about good proxies to proxychains. stats # write_stats # Some timeouts in milliseconds # tcp_read_time_out 15000tcp_connect_time_out 10000 ww Export 2cto.com [ProxyList] # ProxyList format # type host port [user pass] # (values separated by 'tab' or 'Blank ') ### Examples: # socks5 192.168.67.78 1080 lamer secret # http 192.168.89.3 8080 justu hidden # socks4 192.168.1.49 1080 # http 192.168.39.93 8080 ### proxy types: http, socks4, socks5 # (auth types supported: "basic"-http "user/pass"-socks) # http 10.0.0.5 3128socks5 127.0.0.1 7070socks4 127.0.0. 1 9050 note: to select dynamic_chain instead of random_chain, you can list several proxy servers. proxychains will be used in order, if the proxy cannot be accessed, the next proxy server is automatically selected. you need to adjust and run proxychains www.2cto.com based on your computer. enter proxychains and your software in the terminal. & Method 2: tsocks is another tool that forces any software to access the Internet through the SOCKS proxy. Install and configure Tsocks in the terminal: sudo apt-get install tsocks modify the configuration file: sudo nano/etc/tsocks. conf changes the content to the following lines and saves and exits: local = 192.168.1.0/255.255.255.0 # local indicates the local network, that is, the network server that does not use socks proxy = 127.0.0.1 # SOCKS server IP server_type = 5 # SOCKS service version, 4 or 5 server_port = 9999 # SOCKS service end, modify the above content according to your own situation and use your own SSH tunnel settings. Running software running your software with tsocks is very simple, in the terminal: tsocks your software & the following uses the ssh channel and tsocks as an example: www.2cto.com 1: Apply for a shell, there are charges online, but there are also free (slow speed ); http://www.cjb.net/ Free shell application. (This website was previously blocked) 2: Use the ssh command to log on to shell.cjb.net (Address: 216.194.70.6) using the account you applied for (if the dns cannot resolve this url, you can use the IP Address .) The details are as follows: ssh-D 9999 216.194.70.6-l shellacount [Explanation: The D option instructs you to select Port 7070. The l option indicates your user name, and the IP address indicates the host you are going to log on to] 3: configure/etc/tsocks. conf, tsocks your software &~ OK !!! Author acmfly
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.