khoancat1981 / 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

does android-openvpn support Host-Headers or other proxy options? #121

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
hey sir, OpenVPN works perfectly on my device with a default config.
but when I try to add a few lines inside the config like ( i think you know 
what are these commands for..):

route 0.0.0.0.0.0.0.0

and

http-proxy-option EXT1 'X-Online-Host: bla.blabla.com'
http-proxy-option EXT2 'Host: bla.blabla.com'

or

http-proxy-option Host-Header bla.blabla.com

it doesn't seem to work at all..

does this is not supported on Openvpn for Android?

What version of the product are you using?
0.4.10

Which Android phone are you using?
Samsung Galaxy Y 

Which firmware version are you using?
S5360DXLA1

Please provide any additional information below.
I attach 2 similar configs below.. thanks for your attention :)

Original issue reported on code.google.com by anto...@gmail.com on 8 Feb 2012 at 10:00

Attachments:

GoogleCodeExporter commented 8 years ago
I checked openvpn on android. The options are supported. I have never tried 
them my self.

Could you test your config on a PC?

Original comment by friedrich.schaeuffelhut on 10 Feb 2012 at 9:51

GoogleCodeExporter commented 8 years ago
yes, it works on my pc using openvpn 2.1 or higher

is this have a different way to enter the command? because there's an issue 
between openvpn and nmdvpn, I got to modify a few characters from openvpn 
config to make it works on nmdvpn

I've tried input the command to android openvpn from both of nmd and openvpn 
commands, but my android openvpn didn't give any response.. it's just flash 
once and silent :)

Original comment by anto...@gmail.com on 10 Feb 2012 at 10:32

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I tried to add this kind of options but its showing error...

http-proxy-option EXT1 'X-Online-Host: bla.blabla.com'
http-proxy-option EXT2 'Host: bla.blabla.com'

It says the parameter EXT1 is not recognized.

Original comment by agnaveen...@gmail.com on 11 Feb 2012 at 11:38

GoogleCodeExporter commented 8 years ago
sorry, I mistyped before

this line will only work on openvpn 2.1 rc22 and NMDVPN, this is how to input 
this on openvpn 2.1 rc22:

route 0.0.0.0.0.0.0.0
http-proxy-option proxyaddress port
http-proxy-option HOST-HEADER bla.bla.com

and below is line for NDMVPN:

http-proxy-option proxyaddress port
http-proxy-option 'X-Online-Host: bla.bla.com'
http-proxy-option 'Host: bla.bla.com'

here I attach Openvpn and NMDVPN (Windows)

Original comment by mabad0...@gmail.com on 11 Feb 2012 at 4:49

Attachments:

GoogleCodeExporter commented 8 years ago
But how can i use these options in openvpn settings app?

Original comment by agnaveen...@gmail.com on 12 Mar 2012 at 5:14

GoogleCodeExporter commented 8 years ago
any progress on this problem?
waiting eagerly for this prblm to b solved :)

@friedrich.schaeuffelhut,dude waiting for ur response :)
thanx

Original comment by Jav3dAsh...@gmail.com on 19 Mar 2012 at 2:16

GoogleCodeExporter commented 8 years ago
We need an externel patch for that settings to work in openvpn settings 
app..dont know where to find it and how to apply it either.

Original comment by agnaveen...@gmail.com on 19 Mar 2012 at 4:18

GoogleCodeExporter commented 8 years ago
what kind of patch?
btw,for applying cant we compile it from source code

Original comment by Jav3dAsh...@gmail.com on 19 Mar 2012 at 8:45

GoogleCodeExporter commented 8 years ago
no updates :(
plz add this header support in ur next release
thanx :)

Original comment by Jav3dAsh...@gmail.com on 2 Apr 2012 at 9:13

GoogleCodeExporter commented 8 years ago
Hi developer. How are you dude? I need modified openvpn settings apk with 
support host or header. Beause open vpn config not connectted directly on my 
computer or my android phone. I try my modified config file on my pc, it's 
working perfectly nmdvpn or openvpn host-header supported. But when i try same 
config file on my android phone, it's not started. Because it's need modified 
host or header supported apk files. Thank you.

------------------------------------------------------------

Sample:

Normal Open VPN Config File: (It's not connected pc or android)

client
proto tcp-client
dev tap
cert ssl/client.crt
key ssl/client.key
remote 85.25.14.66 443
verb 2
mute 20
keepalive 10 120
persist-key
persist-tun
float
#NT 6.0 Compatability
resolv-retry infinite
comp-lzo
tls-client
tls-remote server
ns-cert-type server
tls-auth ssl/ta.key 1
ca ssl/ca.crt
auth-user-pass pass.txt
script-security 2
route-method exe
route-delay 2

----------------------------------------------------------------

Sample:

Working Nmdvpn Host Support Config File: (It's connecting perfectly with nmdvpn 
on pc, not connected android)

client
proto tcp-client
dev tap
cert ssl/client.crt
key ssl/client.key
remote 85.25.14.66 443
verb 2
mute 20
keepalive 10 120
persist-key
persist-tun
float
#NT 6.0 Compatability
resolv-retry infinite
comp-lzo
tls-client
tls-remote server
ns-cert-type server
tls-auth ssl/ta.key 1
ca ssl/ca.crt
auth-user-pass pass.txt
script-security 2
route-method exe
route-delay 2

http-proxy 72.64.146.136 8080
http-proxy-retry
http-proxy-timeout 6
http-proxy-option EXT1 'Host:fb.me'

------------------------------------------------------------------

Sample:

Working Open VPN Header Support Config File: (It's connecting perfectly with 
openvpn host support on pc, not connected android)

client
proto tcp-client
dev tap
cert ssl/client.crt
key ssl/client.key
remote 85.25.14.66 443
verb 2
mute 20
keepalive 10 120
persist-key
persist-tun
float
#NT 6.0 Compatability
resolv-retry infinite
comp-lzo
tls-client
tls-remote server
ns-cert-type server
tls-auth ssl/ta.key 1
ca ssl/ca.crt
auth-user-pass pass.txt
script-security 2
route-method exe
route-delay 2

http-proxy 72.64.146.136 8080
http-proxy-retry
http-proxy-timeout 6
http-proxy-option CUSTOM-HEADER Host fb.me

--------------------------------------------------------------------

P.S. sorry my weak english i am not english. Thank your supports.

Original comment by icep...@gmail.com on 26 Jun 2012 at 9:09

GoogleCodeExporter commented 8 years ago
is their any way to use this feature on http-proxy in linux

Original comment by pandeyad...@gmail.com on 4 Aug 2012 at 6:56

GoogleCodeExporter commented 8 years ago
:O asi que final lo han conseguido me pregunto quienes  seran los interesados 
:D ???
Vale decir sin embargo que esta configuracion final de varibles  en el  ovpn se 
puede presindir pues no son  indispensable ya que se pueden configurar con toda 
facilidad en el mismo android (por lo menos era mas facil que entender la causa 
de el problema)

Aunque debo decir que lo se tmb porque dias tmb buscanso la causa de este.... xD

Original comment by krh...@gmail.com on 16 Aug 2012 at 8:53

GoogleCodeExporter commented 8 years ago
Aunque no modifica el defecto esta configuracion les servira
Usenla con sabiduria

cito literalmente de 
http://www.titan-movil.com/t24412-di-adios-a-las-aplicaciones-handler-en-cualqui
er-dispositivo-compatible-con-ovpn-configuracion-final-funciona-en-cualquier-com
pania

sta configuracion servira en cualquier compañia de internet, en cualquier 
lugar del mundo mientras alla un "trick" hara que se filtre todo el trafico por 
este hueco del firewall.

Sustituyan donde dice favicon.ico por el trick que este en ese momento 
funcionando y voala... internet full, funciona probado

En cualquier dispositivo Android Compatible con Tun.ko y con permisos root...
En Ios
En Windows
En linux tendran que hacer ligeras adaptaciones...

Funcional y probado usando Openvpn 2.1 2.2 2.3, prueben ustedes con otras 
versiones...

Esta fue mi configuracion original, con el tiempo me he di cuenta que la 
variante http-proxy-option AGENT sale sobrando pero que puedo decir me 
encariñe con la configuracion...

Que les parece por fin poder decir adios a la aplicaciones handler... tengo 
casi un año usandola, ahora mismo debe de servir adaptandola al perfil ideas 
con un trick sin saldo, simplemente hagan las sustiuciones correspondientes.

Les deseo internet gratis y full a todos por siempre

su amigo krhono

persist-key
persist-tun
nobind
client
dev tap
pull
comp-lzo no
tls-client
tls-remote server
ns-cert-type server
tls-auth ssl/ta.key 1
cert ssl/client.crt
key ssl/client.key
ca ssl/ca.crt
verb 3
mute 10
auth-user-pass pass.txt
script-security 2
#NT 6.0 Compatability
route-delay 3
remote favicon.ico.cu.cc
proto tcp
port 443
http-proxy 64.25.61.57 80
http-proxy-retry X-online-Host Header favicon.ico
http-proxy-timeout 6
http-proxy-option AGENT 'Opera/9.80 (J2ME/MIDP; Opera Mini/528.16 (iPhone; U; 
CPU iPhone OS 3.0 like Mac OS X; en-us; compatible; Googlebot/870; U; en 
favicon.ico)'
http-proxy-retry X-online-Host Header favicon.ico

Original comment by krh...@gmail.com on 19 Mar 2013 at 9:59

GoogleCodeExporter commented 8 years ago
bueno se que esun poco tarde jeje pero que modificacion hay que hacer para que 
funcione en linux? estoy quebrandome la cabeza por hacer q funcione pero no 
encuentro forma ...

How to make this works on linux?

Original comment by erickner...@gmail.com on 1 Sep 2013 at 2:29

GoogleCodeExporter commented 8 years ago
aun no se logra soporte http proxy para android 2.3.x

http-proxy-option EXT1 'X-Online-Host: bla.blabla.com'
http-proxy-option EXT2 'Host: bla.blabla.com'

alguien he encontrado solo para android 4.x

Original comment by moizez...@gmail.com on 27 Nov 2013 at 8:27

GoogleCodeExporter commented 8 years ago
hi everybody plz any one help me to find working host..?thanks

Original comment by GShabbi...@gmail.com on 8 Feb 2015 at 8:36

GoogleCodeExporter commented 8 years ago
how to add back query in config openvpn ?

Original comment by radzone...@gmail.com on 14 May 2015 at 2:17