I have setup an openvpn server on my raspberry pi. I try to connect using my android phone (in this case, I have multiple devices with random success)
The connection is made success full, ip adress-based browsing is ok. I used several options for Dns issues (see other topic) and I am about to give up.
my setup
server.conf
openvpn/ opt/
root@raspbianwebserver:/home/pi# cat /etc/openvpn/openvpn.conf
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
user nobody
group nogroup
server 10.8.0.0 255.255.255.0
persist-key
persist-tun
status /var/log/openvpn-status.log
verb 3
client-to-client
push "redirect-gateway def1 bypass-dhcp"
push "route 192.168.0.0 255.255.255.0"
#set the dns servers
push "dhcp-option DNS 8.8.8.8"
log-append /var/log/openvpn
comp-lzo
client.conf
dev tun
client
proto udp
remote <ex.ip.adres> 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
comp-lzo
verb 3
netwerk info
--- 16 feb. 2014 11:01:08
Network interfaces and IPs:
rmnet_usb0 - 10.20.135.89
tun0 - 10.8.0.6
lo - ::1%1
lo - 127.0.0.1
MAC address: 40:F3:08:66:DE:58
Current connection type: mobile
Mobile type: UMTS
DNS #1: 8.8.8.8
ping to 8.8.8.8
--- 16 feb. 2014 11:02:51
--- IP (rmnet_usb0) 10.20.135.89
--- IP (tun0) 10.8.0.6
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=48 time=104 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=48 time=89.9 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=48 time=78.2 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2010ms
min = 78.247 ms
avg = 91.054 ms
max = 104.920 ms
mdev = 10.917 ms
nslookup
--- 16 feb. 2014 11:03:33
--- IP (rmnet_usb0) 10.20.135.89
--- IP (tun0) 10.8.0.6
DNS records for 8.8.8.8
type A: timed out
(DNS server: 8.8.8.8)
routetrace (takes a few minutes)
--- 16 feb. 2014 11:04:46
--- IP (rmnet_usb0) 10.20.135.89
--- IP (tun0) 10.8.0.6
Trace to 8.8.8.8
1 - 10.8.0.1
2 - 192.168.1.1
3 - 62.45.112.2
4 - 62.45.30.229
5 - 62.45.254.17
6 - 62.45.254.17
7 - 72.14.219.174
8 - 209.85.254.95
9 - 209.85.253.247
10 - 209.85.254.233
11 - 209.85.251.25
12 -
13 - 8.8.8.8
google-public-dns-a.google.com.
reverse DNS (very quick)
--- 16 feb. 2014 11:07:58
--- IP (rmnet_usb0) 10.20.135.89
--- IP (tun0) 10.8.0.6
Reverse DNS on 145.58.28.100:
nos1mfp.omroep.nl.
DNS server: 8.8.8.8
http header on ip
--- 16 feb. 2014 11:08:57
--- IP (rmnet_usb0) 10.20.135.89
--- IP (tun0) 10.8.0.6
URL: http://145.58.28.100:80/
Statusline: HTTP/1.1 200 OK
Date:Sun, 16 Feb 2014 10:08:54 GMT
Server:Apache/2.2.22 (Unix)
Last-Modified:Wed, 28 May 2008 18:14:49 GMT
ETag:"21a48-143-44e4e6367b840"
Accept-Ranges:bytes
Content-Length:323
X-ProxyInstancename:nos1m
Keep-Alive:timeout=1, max=100
Connection:Keep-Alive
Content-Type:text/html
http header on name
--- 16 feb. 2014 11:09:47
--- IP (rmnet_usb0) 10.20.135.89
--- IP (tun0) 10.8.0.6
URL: http://www.nos.nl:80/
Unable to resolve host "www.nos.nl": No address associated with hostname