In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
These days, I am considering setting up a proxy server that can access foreign websites. After reading many articles, the principle of proxy is SOCKS5, and then I don't know which foreign server is cheap, and I don't know how to build it for the first time, so I signed up for Tencent Cloud and can test it for 30 days free of charge.
(1) first go to the http://ss5.sourceforge.net/ official website to download the ss5 source code package.
(2) install the compilation dependency package yum-y install pam-devel openldap-devel openssl-devel
(3) upload the source code package to your server, and then compile and install it
(4) modify SS5 configuration file
Modify the authentication method / etc/opt/ss5/ss5.conf to find and cancel the comments on the following two lines
Auth 0.0.0.0Universe 0--
Permit-0.0.0.0Universe 0-0.0.0.0Universe 0-
These two lines are commented after installation, and the default is: no user authentication. If you want to use username/password, the user authentication method, you need to modify the above two lines as follows:
Auth 0.0.0.0max 0-u
Permit u 0.0.0.0amp 0-0.0.0.0max 0-
Add user name and password / etc/opt/ss5/ss5.passwd, one user + password per line (space between)
Root 123456
Test 1234
Modify the parameters of ss5 startup to customize the proxy port (if not set, the default is 1080)
Method one
Edit / etc/sysconfig/ss5, set
# SS5_OPTS= "- u root"
Uncomment and modify it as follows
SS5_OPTS= "- u root-b 0.0.0.0pur9876"
Method two
Add the following line to vim / etc/init.d/ss5
Export SS5_SOCKS_PORT=9876
Export SS5_SOCKS_USER=root
Add executable permissions to the file
Chmod + x / etc/rc.d/init.d/ss5
(5) start and shut down ss5
Be sure to execute it under the root user directory
/ etc/rc.d/init.d/ss5 restart
It can also be used
Service ss5 start
After startup is complete, check to see if the port is listening
Netstat-an | grep 9876
(6) add ss5 to boot and start automatically (optional)
Chkconfig-add ss5
Chkconfig-level 345 ss5 on
(7) in the final verification phase, you can go to the browser to modify the settings of the proxy. If the setting is successful, you can use Baidu ip to verify the success of your server ip as shown below.
(8) I download the proxifier tool for testing, so that all the traffic on this machine goes through the proxy server. I don't know that proxifier can do its own Baidu research.
The above is over.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.