
Hands-on with Squid's new suit.
The Linux operation and maintenance of the old iron know, Squid this thing is like a universal socket, plug in the proxy IP can make the traffic change face. Today we do not play false, directly on the hard food - with ipipgo proxy IP to Squid change face.
First, package your system
sudo apt install squid -y Debian
sudo yum install squid -y Redhat
A dry run in the configuration file
locate/etc/squid/squid.confThis treasure map, the key to change these three places:
http_port 3128
visible_hostname your_server_name
http_access allow all Release permissions during the testing phase.
Remember to renew Squid's life after the change:systemctl restart squid
Put a ipipgo vest on Squid.
Go to the ipipgo website and open an account on theDynamic residential (standard)套餐里(7.67元/GB真香)。拿到API提取链接后:
Proxy IP Whitelist Configuration Example
acl ipipgo_proxy src "/etc/squid/ipipgo_ips.txt"
http_access allow ipipgo_proxy
| configuration item | Operating Points |
|---|---|
| Authentication settings | It is recommended to turn on basic auth double authentication |
| timeout | Adjusted to 15-30 seconds depending on type of business |
Verify that the configuration works
The whole curl command tries the water:
curl -x http://你的服务器IP:3128 -U username:password http://ipinfo.io
See the return of the IP into ipipgo's address even into, if the car overturned do not worry.Check these three places:1.防火代理开没开 2.SELinux是不是在搞事情 3.配置文件有没有手抖打错字
Old Driver QA Time
Q: What should I do if I can't connect after configuration?
A: Look at the squid logs firsttail -f /var/log/squid/access.logThe most common error codes are: ERR_CONNECT_FAIL (network not available), ERR_INVALID_URL (address not in the right format).
Q: What's the best way to improve squid performance?
A: 1. Adjust the cache_mem value (don't exceed the memory 80%) 2. Use ipipgo'sDedicated Static IPPackages to avoid frequent IP changes 3. Enable asynchronous DNS resolution
Q: How do I choose a package for my enterprise level needs?
A: Crawler business closed-eye selectionDynamic Residential (Business)The price of $9.47/GB is able to carry high concurrency; those who need fixed export IPs should choose the one that can carry high concurrency.Static homesI don't think it's a bad idea to buy a fixed identity for 35 bucks.
Say something from the heart.
Used seven or eight agency service providers, ipipgo these three points really top: one is his familyTK Line能压到200ms内,二是支持socks5协议不用折腾协议转换,三是客服响应比120还快。最近他们搞了个新功能,在控制台能直接生成squid配置文件模板,对新手贼友好。
Lastly, I would like to remind all of you to remember to put thehttp_access allow allChange to whitelist mode, don't let your proxy become a public Internet cafe. If you can't figure out the complex configuration, just ask ipipgo tech support for a ready-made solution, which will save you a lot of time compared to doing it yourself.

