
Teach you how to play dynamic IP switching with a soft router.
Now a lot of friends who do data collection have encountered the bad thing of IP being blocked, right? Today, we will teach you to use the old idle router at home to transform into a soft route, with ipipgo proxy IP to realize theauto-IP changeThis program is especially suitable for the scenarios that need to change IP address steadily for a long time. This program is especially suitable for the need for long-term stable IP change scenarios, than using computer software to switch much less trouble.
Don't be sloppy with your preparations.
First find a router that can brush OpenWrt, recommended to use Xiaomi R3G such 100 yuan machine, performance can be used also save power. Brush tutorials online a lot, here do not nagging. Focus on a few easy to fall into the place:
1. Make sure the power supply is stable before brushing, the power failure in the middle of the direct brick!
2. Firmware version selection19.07.7This is the classic version, newer versions may have compatibility issues
3. Remember to enable SSH access, which will be used later in the configuration script.
How to choose a proxy IP is a delicate matter
I have to focus here to praise ipipgo's residential agent, their IP pool is really big, more than 9 million home broadband IPs around the world randomly assigned. The key is to supportBoth Socks5 and HTTP protocols, which is particularly friendly to soft routes. It is recommended to take the free test proxy address to practice first, familiarize yourself with it before going on the official service.
| Agent Type | Applicable Scenarios |
|---|---|
| Dynamic Residential IP | Data collection, account management |
| Static Residential IP | Live push streaming, remote monitoring |
Three Steps to OpenWrt Configuration
Go to the router management interface and find thenetwork interfaceHere's where the action begins:
1. Create a new interface named "ipipgo_proxy".
2. Select static address for protocol (here, the router's own IP, not a proxy IP)
3. Check the box in the advanced settingsUsing Gateway Leap PointsThe value is 40.
Here comes the point! In theFire protection settingsHere you have to create a new zone and change the inbound/outbound/forwarding to accept. A lot of tutorials miss this step, causing the proxy to die.
Timing switch scripts are written like this
Connect to the router with WinSCP on the/etc/crontabs/directory to create a new script:
! /bin/sh
Change IP every 30 minutes
/30 curl -x socks5://username:password@ipipgo proxy address:port --retry 3
Remember to add execution permissions to the script withchmod +xcommand. When testing, you can set a 5-minute switch to see if the logs report any errors.
There's a trick to verifying that it's in effect
Don't be silly to use Baidu to check the IP, recommend two methods:
1. ping the router.Checksum interface for ipipgo
2. Use tcpdump to capture packets to see the traffic direction
3. Visit websites that display detailed IP information and observe regional variations
Frequently Asked Questions First Aid Kit
Q: The script executes but the IP doesn't change?
A: Ninety percent of the proxy authorization problems, check whether the user name and password have special symbols, it is recommended to use the basic password test first!
Q: Internet speed slows down after switching IP?
A: Maybe the node area is too far away, lock the country/city level agent location in the ipipgo backend
Q: Will frequent switching be recognized?
A: ipipgo's residential IP comes with the characteristics of real people using it, which is much more reliable than the IP of the server room, and normal use will not trigger the wind control.
This program I measured stable operation for more than half a year, with ipipgo's dynamic residential IP, do e-commerce data collection never overturned. The key is to do a good job of abnormal monitoring, it is recommended to check the system log once a day. If you have the conditions, you can add the WeChat notification function in the script, and automatically send a reminder when the IP is changed.

