cals80 / android-openvpn-settings

Automatically exported from code.google.com/p/android-openvpn-settings
GNU General Public License v3.0
0 stars 0 forks source link

Proxy settings on APN. #77

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1.Get leaked rom gingerbread HTC desire (bravo)
2.Connect with gprs with proxy 
3.Connect openvpn with fixed rout option.
4.Try to use a vpn. All is sent directly to proxy

What is the expected output? What do you see instead?
Just an button to reset proxy settings
which execute the command : setprop net.gprs.http-proxy none 

What version of the product are you using?
0.4.7

Which Android phone are you using?
HTC Desire A8181

Which firmware version are you using?
SuperNova 1.0.2.6
Android 2.3.3

Please provide any additional information below.
Thank you very much for your nice application !

Best regards,
Stéphane.

Original issue reported on code.google.com by but2....@gmail.com on 28 Jun 2011 at 10:53

GoogleCodeExporter commented 8 years ago
Hello Stéphane,

I am using OpenVPN through a proxy per GPRS/UMTS, too.
Maybe this could help you:
My configs:

Server Config:
proto tcp-server
port 443
dev tap0
ping 15
ping-restart 45
comp-lzo

push "ping 15"
push "ping-restart 45"
push "route 192.168.1.0 255.255.255.0"
push "route-gateway 192.168.1.1"
push "redirect-gateway def1"
push "dhcp-option DNS 192.168.1.1"

tls-server
ca /tmp/ca.crt
dh /tmp/dh384.pem
cert /tmp/server.crt
key /tmp/server.key

Client Config:
remote little.britain.usa 443
client
proto tcp
tls-client
ca ca.crt
cert Chris.crt
key Chris.key
ifconfig 192.168.1.200 255.255.255.0
http-proxy star.trek.ds 9
http-proxy-retry
http-proxy-option AGENT HTC_Touch_HD_T8282 Mozilla/4.0 (compatible; MSIE 6.0; 
Windows CE; IEMobile 7.11)
dev tap
dev-node /dev/tun
resolv-retry infinite
persist-key
persist-tun
script-security 2
verb 3
log status.log
comp-lzo

Original comment by crusoe2...@googlemail.com on 25 Aug 2011 at 6:34

GoogleCodeExporter commented 8 years ago
Thank you for this message.
But, I think you haven't understood my problem.
My vpn works, i can use it if y reset proxy settings provided by gprs.
Actually, my operator use http proxy on 3G+, when i'am setting up the vpn all 
traffic is redirected to the vpn, but the navigator try to contact the 
operator's proxy.

This problem can be resolved by command setprop net.gprs.http-proxy none or 
with proxy setting apps like TransProxy. It can be a new feature of this 
software.

Best regards.

Original comment by but2....@gmail.com on 25 Aug 2011 at 5:32

GoogleCodeExporter commented 8 years ago
Hello Stéphane,

maybe I don't understand...
The navigator requires the proxy, or is this a problem of routing?
You say, that you use TransProxy... It is replaced (further developed) by an 
app called "Auto Proxy" 
(http://forum.xda-developers.com/showthread.php?t=1083284).
I can use it paralell to OpenVPN, this should solve the problem?!

Did you reset the proxy to use VPN?
I can only use it, when I use the proxy to tunnel the VON trough it...

Many regards
Chris

Original comment by crusoe2...@googlemail.com on 25 Aug 2011 at 5:40

GoogleCodeExporter commented 8 years ago
Hello Chris

The proxy is required only for vpn connection.
When all traffic is redirected to vpn (to my box nat), no proxy is needed.

"Did you reset the proxy to use VPN?"
Yes, i must reset the proxy settings to use VPN and I configured proxy settings 
in ovpn configuration file.
It's work with transproxy when off button is pressed.

It's probably a bug of supernova, I haven't this problem with FroYo.

Why not add a configurable script lauched on vpn start and anorher on vpn stop.

Best regards.
Stephane.

Original comment by but2....@gmail.com on 25 Aug 2011 at 7:07

GoogleCodeExporter commented 8 years ago
Hi Stéphane,

then it is the same situation like me and it should work with my config.
But maybe your phone use another way of routing.
Like my Desire HD and my Flyer...

Connect to your VPN and then execute "ip ru del table gprs".
If the VPN works after that, then you have the same problem then me.
This command is also executed with the "Fix HTC Route" Option, but it is not 
executed with the Flyer, logcat says "permission denied", but it works by 
executing it manual...

Many regards
Chris

Original comment by crusoe2...@googlemail.com on 26 Aug 2011 at 10:45

GoogleCodeExporter commented 8 years ago
Sorry for the late.
If i del my gprs table, i can't sent any packet to 3G and vpn message too.
And didn't work.

Original comment by but2....@gmail.com on 6 Oct 2011 at 3:29

GoogleCodeExporter commented 8 years ago

Original comment by friedrich.schaeuffelhut on 27 Jan 2012 at 9:06

GoogleCodeExporter commented 8 years ago

Original comment by friedrich.schaeuffelhut on 27 Jan 2012 at 9:06

GoogleCodeExporter commented 8 years ago
hi
i download open vpn connect so i create account in private tunnel and thy give 
me 100 mb free so i just buy 50 gb data and i want to use that .so i download 
profile and import from sd card so is connecting with internet but is also used 
my balance or money on my mobile phone i mean they charged like local rates . 
and i dont have benefits for 50 gb or ovpn so what i suppose to do .and i m 
using in s4 .
kindly if any one can help me so just send me answer on my e mail address 
.(mohsinraza1989@yahoo.com)thnx

Original comment by mohsinra...@gmail.com on 10 Jul 2014 at 12:57

GoogleCodeExporter commented 8 years ago
hi
i am using openvpn to have free net on my windows and it works 100%
but i can't connect with openvpn android application
so plz send me a solution to connect

Original comment by ouzouss...@gmail.com on 20 Dec 2014 at 3:13