Connected, but can't access any server/site
Posted: Sat Feb 04, 2017 11:23 am
I imported the conf files from my Windows PC (where OpenVPN (GUI) works). The only chnage I had to make was uncommenting the "fragment"-line.
On android (And 5.1.1, sMIUI) the VPN connection can be established (and I get an IP assigned) BUT neither from the borwser nor from the termux app I can ping/access any site neither by hostname nor ip.
My conf is as follows:
---------------
client
dev tun
resolv-retry infinite
nobind
hand-window 10
<connection>
remote <ip of openvpn server> 443 tcp
</connection>
persist-key
persist-tun
<ca>
...
</ca>
<cert>
...
</cert>
<key>
...
</key>
tls-remote <gw host name>
key-direction 1
<tls-auth>
...
</tls-auth>
cipher BF-CBC
verb 3
tun-mtu 1400
;fragment 1300
mssfix
no-replay
redirect-gateway def1
-------------
I also tried the settings from my Mac (OSX), which are as follows:
------------------
remote <ip of vpn server> 1194 udp
pull
tls-client
persist-key
;fragment 1300
redirect-gateway def1
nobind
persist-tun
comp-lzo
dev tun
tun-mtu 1400
hand-window 10
resolv-retry infinite
mssfix
no-replay
cipher BF-CBC
<ca>
...
</ca>
<cert>
...
</cert>
<key>
...
</key>
tls-remote <gw hostname>
key-direction 1
<tls-auth>
...
</tls-auth>
-----------------
Any help/advice appreciated
-Clemens
On android (And 5.1.1, sMIUI) the VPN connection can be established (and I get an IP assigned) BUT neither from the borwser nor from the termux app I can ping/access any site neither by hostname nor ip.
My conf is as follows:
---------------
client
dev tun
resolv-retry infinite
nobind
hand-window 10
<connection>
remote <ip of openvpn server> 443 tcp
</connection>
persist-key
persist-tun
<ca>
...
</ca>
<cert>
...
</cert>
<key>
...
</key>
tls-remote <gw host name>
key-direction 1
<tls-auth>
...
</tls-auth>
cipher BF-CBC
verb 3
tun-mtu 1400
;fragment 1300
mssfix
no-replay
redirect-gateway def1
-------------
I also tried the settings from my Mac (OSX), which are as follows:
------------------
remote <ip of vpn server> 1194 udp
pull
tls-client
persist-key
;fragment 1300
redirect-gateway def1
nobind
persist-tun
comp-lzo
dev tun
tun-mtu 1400
hand-window 10
resolv-retry infinite
mssfix
no-replay
cipher BF-CBC
<ca>
...
</ca>
<cert>
...
</cert>
<key>
...
</key>
tls-remote <gw hostname>
key-direction 1
<tls-auth>
...
</tls-auth>
-----------------
Any help/advice appreciated
-Clemens