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

Cannot ping openvpn server #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
================================================================
server.ovpn
===========
port 1194
proto udp
dev tap
;dev tun
ca ca.crt
cert server.crt
key server.key  # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
persist-key
persist-tun
status openvpn-status.log
verb 3
================================================================
client.ovpn
================
client
dev tap
;dev tun
proto udp
remote 10.56.yyy.xxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
;ns-cert-type server
verb 3
--mute-replay-warnings

=========================
ifconfig on android
eth0      Link encap:Ethernet  HWaddr 38:E7:D8:6F:8F:57
          inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::3ae7:d8ff:fe6f:8f57/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:174854 errors:0 dropped:0 overruns:0 frame:0
          TX packets:123059 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:195867721 (186.7 MiB)  TX bytes:8767925 (8.3 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2468 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2468 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:158188 (154.4 KiB)  TX bytes:158188 (154.4 KiB)

tap0      Link encap:Ethernet  HWaddr F2:D6:E8:94:E8:B7
          inet addr:10.8.0.4  Bcast:10.8.0.255  Mask:255.255.255.0
          inet6 addr: fe80::f0d6:e8ff:fe94:e8b7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 B)  TX bytes:398 (398.0 B)
=================================================================

1. Start openvpn settings on HTC desire. Phone acquires a new IP address
2. Ping to openvpn server fails

Which Android phone are you using?
HTC desire

openvpn server is on windows
Same set of files work when I start a openvpn client on ubuntu
But I am not able to do it on android.

Please let me know what is going wrong ?? Is it .conf files are something else 
I have to do in android.

Original issue reported on code.google.com by veen....@gmail.com on 25 Nov 2010 at 4:01

GoogleCodeExporter commented 9 years ago
Solution lay in fixing routing tables for HTC. Now it works. :-)

"ip rule del from all lookup wifi" used this command

http://code.google.com/p/android-openvpn-settings/issues/detail?id=35

Original comment by veen....@gmail.com on 26 Nov 2010 at 10:42

GoogleCodeExporter commented 9 years ago

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