[DIY] How To Create Your Own 4G Proxy

AlphaSupreme

Junior Member
Jun 28, 2017
173
148
This post is long overdue as I have since transitioned into the proxy industry and feel its time to give back to the community.

What will you learn in this thread:

  • How to create your own mobile 4G Proxies for Instagram

  • How to set up your 4G proxy at your home

  • How to duplicate the setup and obtain more 4G proxies

  • How to create proxy scripts.
I was looking recently to create my own 4G proxies for Instagram. I was running an Instagram audit service and was checking hundreds of accounts every day.

When I was trying to boot Instagram accounts and use them with a tool called Jarvee, my requests were almost every day blocked, every new proxy I bought, every new server I have set up was gone in a matter of a few hours “Instagram blocked this request” and got my accounts limited or “shadowbanned”.

The world of Instagram booters, influencers, and social media managers was starting to be a myth so I needed to do something. Checking all the channels I knew somebody was started talking about how to create your own mobile 4G Proxies for Instagram and how they never get blocked, but never released a tutorial or something, so it got me wondering, how do they do it?

Somebody explained that it was is using USB dongles with phone sim cards to create 4G virgin (never touched/used) proxies.

Hmm… as a system administrator myself, I know a little bit about proxies and how networking works so I started to investigate what can I do, how, and what do I need.

Prerequisites – What do you need to create your own mobile 4G Proxies for Instagram
I don’t know if this will work with other devices besides the ones in this tutorial, I only tested with the ones I recommend in this article.

Basically, you need 5 items and 1 hour of your time to create 1 4G mobile proxy, after that, you can just duplicate the setup and create as many as you want.

With one Raspberry PI setup, you can create up to 6 proxies, but you will need 6 USB Dongles and 6 SIM cards.

  1. Raspberry Pi 3B+ – I go this exact item from Amazon:
    Make sure you get all the package with power supply, you gonna need it. I got it at $50.
    ysFNjHvm_WlUPTfadmyLvoVv3jCExIay2U-2rcLkicg3i0O5wpA95Vx6_MdFWCmG_nv9CDxlCTFD3Yl2ERGzB9eS2yo_tOj0OVMI6v2KTpMhCKs17VOs3kLhGP8zr6i00Kh2Y-nL


  2. Unlocked MF823 4G LTE USB Stick Modem
    There are lots of USB Dongles out there, for me this is the only one who has worked – if you wanna try with other models, make sure they are unlocked.
    c99itvoMTW8WU1jBPHMS3-1O4AwjTWnf6Y3GB2kAhVj9DubXfkDPzFQk7A-CwH65ARGS4ImUo8bXjCpEoN9z4873-a1_49vlHHd5VgzLmxJnNAFIZnRPe7U4_mTz7M0bDHT03hiY


  3. SIM Card
    I cannot give you a link here as this is depending of your country. Every country has its own providers, just buy a sim card, recharge it and if you can activate different options which give you the most mobile data (internet), you don’t need to call or use the SMS function on this SIM. If you want to create your own mobile 4G Proxies for Instagram I will recommend getting 3-4 different sim providers to see which one will work, some providers have their own ip allocation set to “static” and you will not be able to change your IP.

  4. An internet connection at your home
    You can use an internet cable from your home router to Raspberry PI or just connect the Raspberry to your Wifi. I recommend connecting your Raspberry Pi through a cable to be more stable.

  5. A Micro-SD Card
    be aware that on this card we need to install a software called Raspberrian – it’s the operating system for the Raspberry Pi. BUT, you can buy an SD card with Raspberrian installed for you, I got this one (click on image):
    8NGZ0sETkCkcHIPtPmCqqAc-9X4nyfskcrbnuwjiNypwEXds3Qvy_rkqs_qNaDDaYaXTpJyyZbQ763ErBZpdD5BCxmiI76X3wUZWisWBh1LC67ePDBtP9xLh_Y5P9p8LtxEXt5t_
It will work with any other Micro SD card, but you will have to manually install the operating system on the card.

Some pictures of my setup (the first one – now it’s a bit more advanced, more pictures later) This is the USB Dongle with the Sim Card included This is the Raspberry Pi with the Dongle and sim Card + Power connected.

KfQJfRpthr3TrrqFjNPmed31SV_P9RVJ5RcWGC4Rd_lYtbz2ejeOUieq_Xk6S5XEyXab73voPaAPF-FnNP90o8l7HlNNcvynsJgVhwBD91gHgYbMcuPpuhbYnYAdxSA426jEELKN


How to create your own 4G mobile proxies – step by step

Installing the Operating System

If you have all the above items, we are ready to start and create some 4G mobile proxies for you.

The first step – installing Raspberrian on the Micro SD Card – if you bought an already installed one like me, skip this step, if you use your own micro-sd card follow these links:

1. Video Tutorial here:

2. Text tutorial here – https://www.raspberrypi.org/downloads/noobs/

After you have successfully installed the operating system on your micro sd card, let’s

make some changes to your home router.

Port Forward 3128 port in your router in order to create 4G proxies

We gonna connect your Raspberry Pi to your internet router through a cable so your raspberry pi will get access to your network and will use your home IP but the traffic will go through your sim card internet.

I’m not very good at drawing but I wanted to illustrate the exact thing we gonna do here, the network schema if you want:

VqRwtprsBi0NLvkMQy-XEpOD4-Ac9fcIEdrdNVygkpfegRMzcXIHauryO4Td8PbSvTIUBtY94uz4x_ynSDBVYc--tpL16VJvTgS5OV4ZG4e_A1Kf5SsN2XA1X-n60AP7HLtvKpI_


Hope this will clarify things a little bit.

So in order to create this mobile proxy, we need to port forward the internet from the sim card trough port 3128 in our home router, many of you will have this port open already and don’t need to do anything, the others will have to find out how to port forward their port, basically…how to open him, this will vary a lot because we have different routers and different internet providers.

But first, let’s check if your port is open, use this link: https://www.canyouseeme.org/ write 3128 in the box where it says 80 – it will say if it’s closed or not.

If it’s open, skip to the next step, if not, see what model is your router – usually, you will find the name and model on the back of the router, and go on youtube and type “Your router name + model port forward“. Make sure you port-forward your 3128 port.

You will need to figure this out alone, again because we have different routers, models and providers.

The Real 4G Proxy Setup

Now that we have all the things together, let’s do the real work here.

I assume that you have your SIM card introduced into your USB Dongle and those two connected into your Raspberry PI, and this one to a monitor where we can see what we gonna type + a mouse and a keyboard.

Login to your raspberry pi with your user and password and type the following command (lsusb), and see the output:

lsusb

$ <strong>lsusb</strong>

Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 006: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB

Bus 001 Device 007: ID 19d2:1403 ZTE WCDMA Technologies MSM

With the dongle plugged in, check that it is recognized by the Pi with lsusb, it can be seen here as ‘ZTE WCDMA Technologies MSM’.

The device ID is 19d2. and 1403 is the mode, this should be 1405 – CDC ethernet. If it is

not, try removing the micro-SD card and rebooting the Pi, the device modes available

are:

  • 1225 – Default mode. USB Mass Storage Device + CD-ROM + card reader.

  • 1403 – Modem mode. RNDIS + Mass Storage Device.

  • 1405 – CDC ethernet

  • 0016 – Download mode
For some reason, it will work if it’s 1403 also, at least it works for me.

If you type ifconfig your “usb0” should pop-up – that’s your dongle with the sim.

Ok, let’s make sure we are up to date, so type the following commands in the terminal:

Update the Raspberrian OS

sudo apt-get update

sudo apt-get upgrade

Now that our system is up to date, we are ready to type some more commands, one after another, make sure you spell each command correctly:

sudo nano /etc/sysctl.conf

Here you need to scroll down and remove the “#” sign before the line:

net.ipv4.ip_forward=1

Gd1zC_50w1rga51KKaBhomhAsekk8X4ILV3Sz7aZArUyzarlmSmmWYWe1blwpb8Ibl2uOemWRav5akDPN4zz-3JLE8l4ihu34ZAYnDggltL-X0RYVYbJdTepS4GEeRtIKpFB5p9B


Save the changes you’ve made by pressing Ctrl + O and let’s verify we have made the

change and saved, run the command:

sudo sysctl -p

It should return: net.ipv4.ip_forward=1

IZ06TMY37zQKGgCt3iQSx7bx_HXUsAeO2KCoLngakygp0XPRRJ8hF3sOXbvpq7s27QOjINPlY0r1khLye6r45BKDqpOCCXuPkzYfam37o8QX3NbN766ZodHrdgAKuSy762qvuIZ1


Now run the following commands one after another:

sudo apt-get -y install fail2ban software-properties-common build-essential libevent-dev libssl-dev

git clone https://github.com/z3apa3a/3proxy

cd /3proxy/

sudo nano src/proxy.h

In this document scroll down until you find the next line:

#define MAXUSERNAME 128

now above this line write the following line and then save:

define ANONYMOUS 1

It should look like this:

2pmSA1E_hWGSW87cNZsAN82cqXctamAXOygYTiJE6_KdIXPXiAFb__4zwTKE859gi9wKiBD9CpdgbfkVtYqlPBDTj7gxAcHUxn_BydKRfeuPkHsTtkwkkZAFWw-Z2JeuJ8RfelYK


After you save the document, run the following commands:

sudo ln -s Makefile.Linux Makefile

sudo make

Here it will take a while, just wait for the system to finish.

cd 3proxy

sudo make install

sudo systemctl is-enabled 3proxy.service

sudo nano /etc/iproute2/rt_tables

At the end of the document, add the following:

1 gw1

Keep in mind, if you want to add more dongles into this Raspberry Pi to have more proxies, you will have to add 2 gw2, 3 gw 3 and so on in this document

8IrjhN4Fk8tdSsXIRcB4t3VJlIoLTF0D_GIbWSJdx59MHblRhwsNx9Bc3WGgpF1lJTA_sa9CWLcptHp1jITM_QDOi5qGvBRzP8T3oVTnV46fnhIpfwew88pUdPJLqAZhdiEzFsxm


cd

sudo nano 3proxy.cfg

You will need to copy the following code and paste it into your document !!!

#! /usr/local/bin/3proxy

daemon

nserver 8.8.8.8

nscache 65536

timeouts 1 5 30 60 180 15 60

users root:CL:pass

#log /var/log/3proxy.log

#rotate 30

setgid 13

setuid 13

auth none

allow root

proxy -p3128 -e192.168.0.100

flush

Save it, after!

sudo nano startproxy.sh

Here write/paste the following code:

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 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/pi/3proxy.cfg

Save it! Make sure on the last line – where it says “/home/ pi/3proxy” – replace PI with your system username.

sudo chmod 777 startproxy.sh

Here you will need to check what IP your dongle has:

For that type “ifconfig”:

dK3CAfE5OQi4dyETrqPOFJ5I73t-ZA0X_pKcBXxQ1od_JJ22TTNffIv8GI0gqhHks1o48Ivpq2jntq-g8xPbaw8sIyDN5OEM_JuqQ5DMFeDJCXrzWVRHz_64nGY29BZyLb0tO6HB


If your usb0 doesn’t have an IP, check the cable connexion.

Now, let’s see if it works:

sudo ./startproxy.sh

kfQGyd0Wi6zfgOBiipFUtNZZW5Shq7WxX6Q4h5BrB-KuakQFlqYaQ7C70NtxbZDeABxrqKa6iuYUZTgh3XFo2zJRO4xDEb7pffV1I2EsHAS2XD3DcOo0uM0GP2ZfXqSvLePMsCPc


If you type now again ifconfig your IP should be changed:

dEx8DflkWQho4O0z3X_EpSWybI6MpSdu5vh2cD4SIbxdbgxFqRQfIEkV8E_Hdl-8U-SV4CaYAZXhzKLG0Xc7cCe7RlKwev6xBZol9-H39EA-m7t3QMogBPjuJMulr_sEVlPcRRDD


See the difference between the 2 screenshots above? Our IP is now changed, that means it’s working.

How do you know what proxy ip do you have? Run the following command:

sudo curl -s https://wtfismyip.com/text --interface usb0

s__qVjo1U47Fsb-bMkL8_JVR5DEkxUV110CRuzKBuL_RMxOEPD-__WN_L_WbbLlHdoYTl7hIscdH9gKr7u-G6w7WwAoNx1SRGqmgyo_DKoYpoU0_nrs8vX1-zDiYnh8fp6Oc26u6


Congrats, this is the IP your sim card has, you now have a 4G working proxy

How to test your homemade 4G proxy?

The formula is: Your external IP (not simcard_ your IP from home + port 3128 + user+pass.

If you don’t understand why your home IP and not Simcard, watch again the schema I made at the top of this article.

The user and password for your proxy, by default is: User: root Password: pass

You can and should change them by editing the file: 3proxy.cfg at the line:

users root:CL:pass

Proxy example: 111.111.111.111:3128:root:pass

Congrats, you have learned to create your own mobile 4G Proxies for Instagram, and you can add up to 6 on this setup just by editing 2 files.

IMG]
 
It's a great tutorial. Now I can open 4G proxies service. :D
Thanks Bro.
Good luck mate! If you have any questions feel free to ask.
Wow this is very well detailed information, thanks for sharing AlphaSupreme.
No problem! I'm glad I could help you guys out.

So for each proxy we need separate raspberry , means about 70-80$ per each proxy ?
This is correct. You can buy them in bulk from on vilros or you could find them in bulk on eBay. Just make sure you don't buy them from China as these are usually counterfeit and they tend to be buggy.
Great tutorial.

How many IG accounts can each mobile proxy cleanly manage before bans start to creep in?

Each account needs to be running at different times, so no overlapping of account actions per mobile proxy. So theoretically you can run 1 account each minute of the day.

So 1,440 accounts ?? Even more if you were running accounts only for seconds at time.

Obviously this is not practical because you wouldn't be growing much...

I like to keep it under 20. It just works best for my client accounts.

You simply need sleep timers preventing them from performing actions at the same.
 
Last edited:
We gonna connect your Raspberry Pi to your internet router through a cable so your raspberry pi will get access to your network and will use your home IP but the traffic will go through your sim card internet.

So if i understand this correctly:

Rasperry gets connected to my home router > The "Proxy" will get the traffic bandwidth from my home connection > Bandwidth from my Router goes through the simcard to my "end proxy" which shows the 4G IP?
 
Very nice. After all, you could start selling these 4G packages. Full package. With detailed instructions and how to act in different situations. Surely there are some buyers who don’t have time to get up with things like that. Just add your own profit in the way.
 
Epic guide, bookmarked!
Thanks mate :)
Great share, Now I can develop a bot to reply faster than @TheVigilante :smirk:
hahaha you guys are great :p
Holy shit! I’ve been looking for something like this! Cheers..
I'm glad I could help! If you have any questions feel free to ask them here.
You might spoil business for some people
Sharing is caring. I too sell proxies... :cool:
So if i understand this correctly:

Rasperry gets connected to my home router > The "Proxy" will get the traffic bandwidth from my home connection > Bandwidth from my Router goes through the simcard to my "end proxy" which shows the 4G IP?
What do you mean by traffic bandwidth? the external IP you will use to connect to is your routers.
Can I build this proxy with raspberry at home and use the proxy on my vps where jv is running?
Yes you can!
Really nice step-by-step tutorial. What if I don't have the exact same USB modem? I think others will work if they are unlocked. I have an old ZTE USB modem, I hope it works.
You need to check the frequencies your carrier runs on and make sure your dongle runs those frequencies as well.
Very nice. After all, you could start selling these 4G packages. Full package. With detailed instructions and how to act in different situations. Surely there are some buyers who don’t have time to get up with things like that. Just add your own profit in the way.
I actually do. I tried selling them on here but my sales thread never got a response from the admins so I went through other avenues.
You should give credits to the right owner.......at least
And who would that be?
The site you have copied the entire tutorial and pictures - you have modified the text a little bit but..still.
Thank you for your thoughts.
Thank you for sharing this.
 
Last edited:
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock