[DIY] How To Create Your Own 4G Proxy

the trick is to turn you rasberry pi into linux (Ubuntu) and than you can have 10-20 proxies. on 1 rpi. also must have good quality hub that is powered.
How to make the proxy rotate the IP?

I have successfully followed the guide and made the proxy work, now im strugling to make it rotate IP.

Also found out its not a good idea to bind / unbind every time I want to change IP - because doing it 1000x times a day will damage the components (also not viable when using dongles, only works with 4g sticks)
 
Can you use this setup to run a mobile 4g proxy?

From my understanding these days instagram using a mobile 4g proxy is safer, as it looks more natural.

Not too sure how this works or how to implement it though.
 
how to make my raspberry pi execute the IP rotation script by a WEB request from a different device on same LAN network?


I have everything setup:

- my own proxy and the IP rotation script in linux - everything works great


just cant manage to make it work with HTTP requests.
 
I have a problem with this setup.

I follow all the steps:

1. port forwarding port 3128 in my home router to my raspberry (with a static LAN IP ofc)
2. all other steps too
3. I fixed this mistake, where "table" should have been added, and instead of Pi entered my system name

Sudo echo "Let's setup the IP"

sudo ifconfig usb0 192.168.0.100

sleep 2

sudo echo "Let's setup the routes for the proxy"

sudo ip route add 192.168.0.0/24 dev usb0 src 192.168.0.100 table gw1

sudo ip route add default via 192.168.0.1 dev usb0 table gw1

sudo ip rule add from 192.168.0.100/32 table gw1

sudo ip rule add to 192.168.0.100/32 table gw1

sleep 5

sudo echo "Let's start the proxy "

sudo 3proxy /home/system name/3proxy.cfg

4. after entering "sudo ./startproxy.sh" it shows this:

View attachment 219746

after that I enter "ifconfig" and the IP address has changed - which would indicate that it works.

View attachment 219745

Then I start thinking wow this is it, I may have finally done this.
But NOPE, when I try to connect to the proxy I made following the instructions in the guide:

Example: https://www.whatismyip.com/151.252.244.127/:3128:root:pass

https://www.whatismyip.com/151.252.244.127/ - home routers IP (not my real IP)
3128 - port
root - name
pass - password

It does not work.
Would greatly appreaciate any help or suggestions on what I did wrong.

Happy to answer any question on the setup and files in usage (3proxy.cfg and startproxy.sh)


here is my problem im facing :/
Hi Bakidaki, thanks for this you were a massive help. Cleared all the errors up.

This is where I am at, it starts the script perfect no errors. I have port forwarded and used that website to check the ports are open and they are. The main issue is I just can’t connect to the proxy that is provided when you do the following command sudo curl -s https://wtfismyip.com/text —interface usb0

Where did you go from here?
 

Attachments

  • 4393F7DC-1F14-4614-8758-B9F2FC63275F.jpeg
    4393F7DC-1F14-4614-8758-B9F2FC63275F.jpeg
    372.4 KB · Views: 24
I just figured out how to get multiple proxidize dongles working on my own system using 3proxy and the api call to reboot the dongles. Proxidize is way too expensive now.
 
So, I have been able to implement the proxy server,
but not "exactly" the same way as the author has implemented.

This is for anyone who has the usb mode set to 14db or 1f01 in lsusb.

My setting
operator : ubuntu
machine : rasbarry pi 3 b+
lte usb modem : huawei E353/E3131

if you are stuck on 12d1:1f01, you can call
sudo usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000a11062000000000000100000000000000'
to change your usb modem state to 1f01 -> 14db.

lsusb results
1671010380859.png


14db means that the usb is in huawei HiLink state.
in HiLink state, we can go to the base ip of the device in order to connect to the lte and settings of this modem


1671010944457.png

my huawei settings home page is 192.168.1.1,
ifconfig shows : inet 192.168.1.100 netmask 0xffffff00 broadcast 192.168.1.255

so 192.168.1.100 -> 192.168.1.1 (home page)
the internal ip might differ, but the last number changes, 100 -> 1

When you click connect on this page and inspect this page and check the network
1671011174287.png
you will see a endpoint here called dial.

So what the homepage has done is send this website a POST request,

in order to manipulate this request you can call in your cmd
curl -X POST http://192.168.1.1/api/dialup/dial -d "<?xml version="1.0" encoding="UTF-8"?><request><Action>1</Action></request>"

I have tested methods to change the ip address of the modem,
1671011514843.png
In Settings -> network settings
change the settings to HSPA + \ UMTS only.
And change it back to LTE only.
Reconnect.

You can manipulate this by sending curl of the network.

And also, the author has implemented by usb0, but mine showed up on eth1.
You can just change the settings



Code:
sudo echo "Let's setup the IP"
sudo ifconfig eth1 192.168.1.100
sleep 2
sudo echo "Let's setup the routes for the proxy"
sudo ip route add 192.168.1.0/24 dev eth1 src 192.168.1.100 table gw1
sudo ip route add default via 192.168.1.1 dev eth1 table gw1
sudo ip rule add from 192.168.1.100/32 table gw1
sudo ip rule add to 192.168.1.100/32 table gw1
sleep 5
sudo echo "Let's start the proxy "
sudo 3proxy /home/ubuntu/3proxy.cfg

See that the usb0 is replaced with eth1.
I have also changed 192.168.0.0 into 192.168.1.0
because, when the modem changed its internal ip, the internet connection was lost.


This thread is very old, but I cannot thank more to this awesome chad author.

SUCCESS!!!!
1671012579589.png
 
This is just awesome, thanks for sharing the guide! Bookmarked :)
 
Hello, anyone try this on 2k22/2k23 ? Complete guide step by step - no have connection at end
 
Would be great to update this method on how to get an IP/Proxy also from foreign countries. So we can make our own proxy pool with IPs from around the world or a specific country whe are working in.
 
Would be great to update this method on how to get an IP/Proxy also from foreign countries. So we can make our own proxy pool with IPs from around the world or a specific country whe are working in.
1. you buy plane ticket
2. you go to that location
3. you rent a room or office
4. you start with all the steps in the tutorial
 
1. you buy plane ticket
2. you go to that location
3. you rent a room or office
4. you start with all the steps in the tutorial
yea true,

it would be amazing if you could just buy a SIM card from another country and then have a 4g proxy with that countrys IP from your own home :D

not how it works unfortunately
 
yea true,

it would be amazing if you could just buy a SIM card from another country and then have a 4g proxy with that countrys IP from your own home :D

not how it works unfortunately
technically - it's called mobile data roaming and it's possible in EU, but definitely not a beginner-friendly setup and it's a bit pain to manage. I'm going for a more primitive way and now setting up multiple offices.
 
technically - it's called mobile data roaming and it's possible in EU, but definitely not a beginner-friendly setup and it's a bit pain to manage
hm interesting, but mobile data roaming would slow down the internet if using from other country right?
 
hm interesting, but mobile data roaming would slow down the internet if using from other country right?
I haven't researched how the routing happens when roaming but you usually don't need high-speed internet, for most of the time you run few automations tops on the same device at the same time, if you skip static assets from proxying(as you should) then you wouldnt notice the speed changes much.
 
Back
Top