N
N
nkp072017-08-09 06:07:34
Android
nkp07, 2017-08-09 06:07:34

How to make a proxy server from android behind NAT?

Tell me, who knows how to make a proxy server from an android phone to distribute 3G Internet. If the ip-address is the address of the phone in the 3G network and supports the incoming connection, then there is no problem. But I'm interested in the situation when the ip-address is behind NAT in a 3G network. I think that something like this should look like this: the program on the phone establishes a VPN connection with an intermediate server. The client accesses the proxy server on the phone through the VPN connection and accesses the Internet through the 3G network. Does anyone have such experience. What programs to use and how to set it all up?
b5461687853d488cbbe74e0a12d89b2f.jpg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
nkp07, 2017-08-14
@nkp07

I figured it out myself:
1) On Android, you need to install Proxy Server from Ice Cold
2) In the server config, you don’t need to do push "redirect-gateway" - setting the OpenVPN server as the default gateway for all clients at once
3) In the client config - I have number 2, which will use the proxy on Android, you must specify redirect-gateway def1 - the default gateway is the OpenVPN server
4) Android in the OpenVPN network receives IP 10.8.0.6 - I configure Proxy Server on Android with port 1212, say
5) proxy 10.0.0.6:1212 without authorization, for all protocols, send DNS queries through the proxy
And everything works.

M
mikes, 2017-08-09
@mikes

on the client you raise the openvpn server .. you configure the routes, connect to it from the android and also configure the routing so that vpn is not the default route. If you really want a proxy, then you put a proxy on android .. or nat.
the client must have a white ip .. static or ddns

S
schtakelberg, 2018-11-27
@schtakelberg

nkp07 Hello, could you tell me if Proxy Server from Ice Cold is working for you now?
I installed it on my phone, I create a server, I try to connect to it, I can't

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question