Detailed installation and configuration tutorial for socks5 in CentOS

Source: Internet
Author: User
Detailed installation and configuration tutorial for socks5 in CentOS, configure and install the socks5 agent in CentOS. the SOCKS5 protocol is useful when machines in the internal network need to access the outside through some machines in the network that can connect to the external Internet.

1. Configure the compiling environment
Yum-y install gcc automake make
2. install necessary packages for socks5
Yum-y install pam-devel openldap-devel cyrus-sasl-devel
3. Download, compile and install ss5 (socks5)
Wget http://jaist.dl.sourceforge.net/sourceforge/ss5/ss5-3.6.1-1.tar.gz
Tar zxvf ss5-3.6.1-1.tar.gz
CdSs5-3.6.1
./Configure
Make
Make install
# Start the ss5 Service
/Etc/init. d/ss5 start
Add ss5 to the service and start it at random
Chkconfig--DdSs5
Chkconfig ss5 on
Ss5 uses port 1080 by default and is allowed by anyone.
In/etc/opt/ss5/ss5.conf
# SHost SPort AuthentiCatIon
#
Auth 0.0.0.0/0 --
Is
# SHost SPort Authentication
#
Auth 0.0.0.0/0-u
In/etc/opt/ss5/ss5.PasswdTo add the user name and password, for example:
Test
Use user verification to restart the ss5 Service
/Etc/init. d/ss5 restart

_____________________________________________________________


Run the code below. The code is not completely copied.


SS5Mod_socks4.c: 705: warning: cast to pointer from integerDiffErent size
Gcc-g-O2-DLINUX-I.-I.../INcLude-sharEd-FPIC-c-o SS5OpenLdap. o S S5OpenLdap. c
SS5OpenLdap. c: In function \ 'directoryquery \':
SS5OpenLdap. c: 163: warning: assignment makes pointer from integer without a cast
SS5OpenLdap. c: 165: warning: cast to pointer from integer of different size
Gcc-g-O2-DLINUX-I.-I.../../include-shared-fPIC-o mod_socks4.so SS5Mod _ socks4.o SS5OpenLdap. o-lpthread
Make [2]: Leaving directory/root/ss5-3.6.1/moDuLes/mod_socks4 \'
Make [2]: Entering directory '/root/ss5-3.6.1/modules/mod_socks5 \'
Gcc-g-O2-DLINUX-I.-I.../../include-shared-fPIC-c-o SS5Mod_socks5.o SS5Mod_socks5.c
SS5Mod_socks5.c: In function \ 'methodparsing \':
SS5Mod_socks5.c: 68: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 114: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 122: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \ 'requestparsing \':
SS5Mod_socks5.c: 151: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \ 'upsTrEamServing \':
SS5Mod_socks5.c: 228: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 245: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 262: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 266: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 273: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 281: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 295: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \ 'connectserving \':
SS5Mod_socks5.c: 350: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 367: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 381: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 425: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \ 'bindserving \':
SS5Mod_socks5.c: 495: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 503: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 529: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 543: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 579: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 605: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 631: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \ 'udpassociateserving \':
SS5Mod_socks5.c: 706: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 734: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 772: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 780: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 807: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: 914: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \ 'udpassociateresponse \':
SS5Mod_socks5.c: 992: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \ 'filecheck \':
SS5Mod_socks5.c: 1191: warning: cast to pointer from integer of different size
Gcc-g-O2-DLINUX-I.-I.../../include-shared-fPIC-c-o SS5OpenLdap. o S S5OpenLdap. c
SS5OpenLdap. c: In function \ 'directoryquery \':
SS5OpenLdap. c: 163: warning: assignment makes pointer from integer without a cast
SS5OpenLdap. c: 165: warning: cast to pointer from integer of different size
Gcc-g-O2-DLINUX-I.-I.../../include-shared-fPIC-o mod_socks5.so SS5Mod _ socks5.o SS5OpenLdap. o-lpthread
Make [2]: Leaving directory '/root/ss5-3.6.1/modules/mod_socks5 \'
Make [2]: Entering directory '/root/ss5-3.6.1/modules/mod_authen \'
Gcc-g-O2-DLINUX-I.-I.../../include-shared-fPIC-c-o SS5Mod_authenti cation. o SS5Mod_authentication.c
SS5Mod_authentication.c: In function \ 'authentication \':
SS5Mod_authentication.c: 68: warning: cast to pointer from integer of different s ize
SS5Mod_authentication.c: 153: warning: cast to pointer from integer of different size
SS5Mod_authentication.c: 163: warning: cast to pointer from integer of different size
SS5Mod_authentication.c: 182: warning: cast to pointer from integer of different size
Gcc-g-O2-DLINUX-I.-I.../../include-shared-fPIC-c-o SS5Basic. o SS5B asic. c
SS5Basic. c: In function \ 's5pwdfileopen \':
SS5Basic. c: 30: warning: cast to pointer from integer of different size
SS5Basic. c: In function \ 's5pwdfileclose \':
SS5Basic. c: 59: warning: cast to pointer from integer of different size
Gcc-g-O2-DLINUX-I.-I.../../include-shared-fPIC-c-o SS5ExternalProg ram. o SS5ExternalProgram. c

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.