Using proxy BEHIND OpenVPN Server

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
intel2k
OpenVpn Newbie
Posts: 1
Joined: Mon Feb 24, 2014 7:59 pm

Using proxy BEHIND OpenVPN Server

Post by intel2k » Mon Feb 24, 2014 8:10 pm

At first: Great work! openVPN works fine on my droid. could connect to every server behind my vpn-gateway.

but:
how do i push a proxy to the android device?

droid --> vpngate --> proxy --> inet
NOT (!) droid --> proxy --> vpngate --> inet

"push dhcp-option PROXY_HTTP ip.of.pro.xy port" doesn't work.

i mean: kitkat is the first droid-based-os which supports proxies.

please help.

dodwzolo
OpenVpn Newbie
Posts: 2
Joined: Fri Feb 12, 2016 9:07 am

Re: Using proxy BEHIND OpenVPN Server

Post by dodwzolo » Fri Feb 12, 2016 9:10 am

Hello,

i'm searching for an answer, too.
We use our own VPN. Connection is established but i can't add an additional proxy after the smartdevice is connected.
The dhcp-push option works fine with an ios device but not with an android device.
Android Version: 4.4.4

I don't want to use a root. Is anyone out here who can help me?

dodwzolo
OpenVpn Newbie
Posts: 2
Joined: Fri Feb 12, 2016 9:07 am

Re: Using proxy BEHIND OpenVPN Server

Post by dodwzolo » Fri Feb 12, 2016 9:18 am

Hello,

i'm searching for an answer, too. My device is not rooted with android 4.4.4
openVPN connection works fine. But i need a proxy for some apps.
the dhcp-push option seems just to work on ios devices. can somebody help me please?

gerbyipv6
OpenVpn Newbie
Posts: 2
Joined: Thu Mar 24, 2016 1:03 pm

Re: Using proxy BEHIND OpenVPN Server

Post by gerbyipv6 » Thu Mar 24, 2016 1:41 pm

I'd also like support for this, from the log my client shows:

Code: Select all

Error setting dhcp-option for proxy:
tun_prop_dhcp_option_error: tun_builder_setproxy_http
Client is a unrooted Android 5.1 device running OpenVPN Connect 1.1.16 (build 74)

Anastasia
OpenVpn Newbie
Posts: 1
Joined: Fri Mar 25, 2016 8:30 am

Re: Using proxy BEHIND OpenVPN Server

Post by Anastasia » Fri Mar 25, 2016 9:55 am

Proxying HTTP(s) traffic from Android devices through Burp should be actually no magic. Nevertheless you'll have to take some important steps into consideration:

Install Burps CA cert on the device

I usually access Burp directly and download the cert file (cacert.crt)
If Burp is listening on 192.168.1.1:8080, just go to http://192.168.1.1:8080/cert to download the cert
Push this file to your device and install the certificate
Install ProxyDroid on Android

Set proxy setting globally or only for certain applications
In theory that's all! BUT: During recent mobile application pentest sessions, I've noticed that sometimes applications traffic is not being passed through the proxy, especially when the application does not connect to standard HTTP ports like 80 or 443. Besides that: What about SSDP and all other text-based protocols you would like to intercept in Burp? In most cases the proxy settings will simply be ignored and the traffic would be routed directly to the destination. In order to achieve my goal I'll be using iptables and some Burp settings most pentest aren't aware of. But first things first: The basics.

cark
OpenVpn Newbie
Posts: 2
Joined: Sun Aug 16, 2020 12:26 am

Re: Using proxy BEHIND OpenVPN Server

Post by cark » Sun Aug 16, 2020 2:25 am

I know it's years after this post was made, but I found a solution that worked for me. You just configure a proxy on your phones APN, pretty much the same way you do on Windows.

Here's a little tutorial I made for it.
https://youtu.be/i7Q24BKJovo

Post Reply