
Hands on to build a dedicated SOCKS5 server
Recently a lot of friends asked how to make a SOCKS5 proxy server, said the company to do data collection is always blocked IP. we will nag about this today, with the most practical way to teach everyone from scratch to build a server, and incidentally, how to match theipipgoThe proxy IPs are much smoother to use.
Choosing a server is like finding a date
Engage in SOCKS5 proxy have to first the whole reliable cloud server, here to give a few hard indicators:
① Stable network with no jerking(Recommended to choose BGP line)
② Start with a bandwidth of at least 5M(More people will have to be added.)
③ Don't get all fancy.(CentOS 7 is the least of your worries)
Now on the market Tencent cloud, Ali cloud, these big manufacturers of the newcomer package, a hundred or so dollars can be used for a year, cheaper than buying milk tea.
Don't be a reacher when installing software
Dante, an old-school tool, is recommended here to execute this string of commands directly on the server:
yum install -y gcc make Install compilation tools
wget https://www.jdns.org/download/dante-1.4.3.tar.gz
tar -zxvf dante-1.4.3.tar.gz
cd dante-1.4.3
. /configure && make install
Pay attention to the terminal output, if you are stuck at a certain point, it is likely to be a missing dependency package. Don't panic, just follow the instructions to install the corresponding development package.
Configuration files have to be played this way
Create a new sockd.conf file in the /etc directory, focusing on these parameters:
internal: 0.0.0.0 port = 1080 Listening on port 1080 on all NICs
external: eth0 Use the server's external NIC.
client pass { which IPs are allowed to use proxies
from: 0.0.0.0/0 to: 0.0.0.0/0
method: none
}
socks pass { forwarding rules
from: 0.0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
}
After changing the configuration remember tofirewall-cmd -add-port=1080/tcp -permanentTurn on the fire protection or the traffic is all blocked out.
It's the combination of movement and static that's the key.
Self-built servers + dynamic proxy IPs are the way to go. PutipipgoThe proxy IP is integrated into the configuration file:
route {
from: 0.0.0.0/0 to: targetwebsite.com via: 103.xx.xx.xx port = 30001
proxyprotocol: socks5
method: username
}
expense or outlayipipgoThe exclusive IP pool for forwarding not only solves the problem of IP being blocked, but also ensures business stability. Their API docking is convenient, and they can change 500+ IPs per minute, which is particularly worry-free when running data.
QA time
Q: What if I can't connect to the server for testing?
A: First ping the server IP to see if it works, then use telnet 1080 port. If the port is not working, it is likely that the firewall is not properly configured.
Q: What about the snail-like agent speed?
A: Tryipipgos BGP transit line, specifically optimized for TCP transmission. Remember to turn up theclient session timeoutParameters.
Q: Will using multiple proxy IPs at the same time conflict?
A: Just configure multiple routing rules in Dante and use different ports to distinguish them. It is recommended to cooperate withipipgoAPI to do dynamic switching, which is a lot less work than changing the configuration manually.
After tossing this combination, you can basically meet the business needs of small and medium-sized enterprises. If it's too much trouble to build your own serveripipgoThey also provide ready-made SOCKS5 proxy services, so you can use them directly and save the effort of operation and maintenance. What do not understand, welcome to their official website to find technical customer service nagging, reply faster than the delivery boy faster.

