How to rotate 4G proxies IPs?

Bakidaki

Regular Member
Joined
Feb 1, 2022
Messages
225
Reaction score
61
Hi :) ,

over the last 2-3 months I have been working on making my own 4G proxies.

After figuring out many problems, I have finally succeeded.

Now I am strugling with making the proxies rotate, since everyone who uses 4G proxies knows
they are almost useless for mass automation without IP rotation.

My setup:

1. Raspberry Pi 4B, 4GB
2. 3 USB dongles with SIM cards:
- ZTE MF927U
- ZTE MF833V
- Huawei E5573C

I made the proxies mostly following this guide LINK (changing a couple of things, since the guide has some mistakes)

Now I am stuck at proxy rotation.

Would it be better to try to somehow use the web UI for these dongles in order to change the IP, or try to make them power cycle?

Already tried using "hub-ctrl.c" and power cycle with:
#!/bin/sh
echo "1-1.$1" > /sys/bus/usb/drivers/usb/unbind
echo "1-1.$1" > /sys/bus/usb/drivers/usb/bind

but my USB hub (my USB hub: ORICO H7928-U3 7 port USB3.0 with a power adapter) isnt playing along for the "hub-ctrl.c" method to work (thinking about buying a new USB hub with individual port power switching, it should work with those according to some people), and as of the power cycle, it didnt work since the ZTE MF927U and Huawei E5573C are battery powered dongles not 4G USB ethernet sticks (havent tried yet with ZTE MF883V), so they would just disconnect and reconnect and not do a proper power cycle.

If you have any advice for IP rotation or improving the current setup, please feel free to comment,
also if you have any questions about the setup or how I made it work feel free to ask.

Thank you :D
 
Rebooting "stick" modems is too brutal. They will not serve you much time when doing constant reboots.
Correct, rebooting MiFi modems is not working at all.

Definitely learn how IP rotation can be done via WEB UI: Data off>Mode 3g>Mode Auto>Data on.
Couple of hours in Chrome debug console + a simple web script will bring success.
Or hire someone who already automated it for various set of modems model (humly, me).
 
Rebooting "stick" modems is too brutal. They will not serve you much time when doing constant reboots.
Correct, rebooting MiFi modems is not working at all.
wow, didnt even think this would be a problem

Definitely learn how IP rotation can be done via WEB UI: Data off>Mode 3g>Mode Auto>Data on.
Couple of hours in Chrome debug console + a simple web script will bring success.
Or hire someone who already automated it for various set of modems model (humly, me).
does this method include using the HiLink client?
How would this script run if im having multiple dongles on my raspberry Pi 4B, I would imagine its easier to setup for one dongle than for multiple. (goal eventually to get to 12 dongles)

and last one, how much would it cost me to hire you to teach me do it, if I cant make it work on my own (which as of now, there is a reasonably high chance of happening)
 
wow, didnt even think this would be a problem

every electrical device is not supposed to be power-cycled too often.

does this method include using the HiLink client?

If a modem has Web-Gui (all HiLink's do) then yes.

multiple dongles on my raspberry Pi 4B,

Then it is another issue, of reaching out every modem separately. You can either use curl --interface or Linux Source Based Routing.
 
Check out what API calls the web panel for the dongles do when you reset the connection and replicate those in a script (any langauge)
 
Back
Top