Trying to set up 4g proxy server with raspberry pi

A quick inquiry over the internet shows there are ways to setup what you have but it's gonna need a lot of time and effort on your part. The post above is a good read.
Give it a good afternoon and you'll be all set. If all else, you can post on the Hire a Freelancer to outsource some help with members experienced in setting up these type of things.
 
There is no magic , neither there is plug-n-play. You have to understand Linux Networking , tunnels, routing, firewalls.

Basically here are 2 methods of sharing your phone connection through a raspberry PI:

1. Using your landline connection (broadband, fiber). RPi establishes tunnel to a VPS using broadband connection, binds a port on VPS that is forwarded back to the RPI , where a proxy software is listening (Tinyproxy, Squid, etc). So the proxy software accept requests and forwards it via 4G connection (Wifi or USB tethering).

So the scheme is
Proxy_user>(Internet)>VPS:8888>(tunnel via broadband)>RPI:8888>(Internet 4g)>Website

2. Using only 4g data. It is simpler to get done , but 2x data usage will take place.
Rpi connects to the internet with WIFI or USB tethering, binds the port on the VPS, forwards it back to itself.


So the scheme is
Proxy_user>(Internet)>VPS:8888>(tunnel via 4g )>RPI:8888>(Internet 4g)>Website
using the first method its possible to social media networks discovery your home IP?
 
i mean i just can in the network... i need to access the proxy from outside the network...
i believe you will need to login into your router to create port fowarding for your raspberry. but in order for it to work, you will need public IP from your home ISP.
 
You are probably behind NAT. The keyword you are looking for is “udp hole punching”. Search on youtube, there should be lots of such tutorials.


Basically, you need an additional vps server to connect (or a port forwarding ssrvice) to your proxy server (you can have one vps for multiple proxy servers if you want to scale up). Your rpi will connect to that vps (in other words punch a hole in its own network). The vps will keep the session alive, and proxy the outside connection to your rpi.

If you want a specialised service, try packet riot. It solves exactly this problem. Not associated with them in anyway.
 
Last edited:
Back
Top