Configure SOCKS5 Agent under-linux

Source: Internet
Author: User

Brief introduction:

Under Linux There are various agents available, like the most commonly used squid, is the Http/https agent, can also proxy FTP request, but it is actually an HTTP agent, not an FTP proxy, but it can handle the FTP proxy request, Just as the browser handles FTP requests the same way, some programs can only be set to use Socks proxy, like CuteFTP, as well as wu-ftp can only be set to use FTP proxy (here the FTP agent is the standard FTP proxy, not the way squid support); ICQ 2000 can accept both HTTPS agent and socks agent; Netvampire can accept standard HTTP (get/post) proxies (squid support), and HTTP (CONNECT) proxies (also supported by squid).

In order to use CUTE-FTP, in addition to the IP camouflage method, we will use the SOCKS proxy, now let's look at the process of configuring SOCKS5:

1. Download the file

Download the latest version of the SOCKS5 source file from www.socks.nec.com to the/tmp directory.
Socks5-v1.0r11.tgz

2. Compile and install on the firewall (which should be connected directly to the Internet, is a dual host with two NICs installed, assuming the internal network segment is 192.168.0.0/24)

Cd/tmp
TAR-XVFZ socks5-v1.0r11.tgz

Cd/tmp/socks5-v1.0r11
./configure--with-threads
Make
Make install

3. Configuration files

/etc/socks5.conf
#/etc/socks5.conf
Set Socks5_maxchild 3
Set Socks5_noident
Set Socks5_timeout 5

Interface 192.168.0. -Eth1
Auth 192.168.0. -U
Permit u-192.168.0. ---Jephe
Permit u-192.168.0. ---Jack
Deny-------

4. configuration file/etc/socks5.passwd

#/ETC/SOCKS5.PASSWD
Jephe Password_of_jephe_is_here
Jack Password_of_jephe_is_here

5. Start testing

/usr/local/bin/socks5-f-S
If the following message appears, the test succeeds.
18210:SOCKS5 starting at Mon Dec 18:23:45 1998 in normal mode

Then exit SOCKS5 and start formally running it in background mode:

6. Official operation

/usr/local/bin/socks5-t-S 2>/var/log/socks5

7. Finally, add to/etc/rc.d/rc.local

echo "/usr/local/bin/socks5-t-S 2>/var/log/socks5" >>/etc/rc.d/rc.local

END.

Configure SOCKS5 Agent under-linux

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.