I am trying to connect with a android phone 4.4. The connection is working fine, but I can not reach any local server by name. I guess, that the DNS request is not going over the vpn connection.
Code: Select all
#OpenVPN Server conf
daemon openvpnserver
writepid /var/run/openvpn.pid
#DAN prepare OpenVPN for listening on blue and orange
;local rotarn.hopto.org
dev tun
proto udp
port 1194
script-security 3 system
ifconfig-pool-persist /var/ipfire/ovpn/ovpn-leases.db 3600
client-config-dir /var/ipfire/ovpn/ccd
tls-server
ca /var/ipfire/ovpn/ca/cacert.pem
cert /var/ipfire/ovpn/certs/servercert.pem
key /var/ipfire/ovpn/certs/serverkey.pem
dh /var/ipfire/ovpn/ca/dh1024.pem
server 10.105.209.0 255.255.255.0
tun-mtu 1500
keepalive 10 60
status-version 1
status /var/run/ovpnserver.log 30
cipher AES-256-CBC
auth SHA1
comp-lzo
push "redirect-gateway def1"
push "dhcp-option DOMAIN <My Doman name>"
push "dhcp-option DNS <My local IP of the DNS server>"
max-clients 100
tls-verify /usr/lib/openvpn/verify
crl-verify /var/ipfire/ovpn/crls/cacrl.pem
user nobody
group nobody
persist-key
persist-tun
verb 4
The mobil is not rooted.tls-client
client
nobind
dev tun
proto udp
tun-mtu 1400
remote <Meine DYN DNS IP> 1194
pkcs12 /etc/openvpn/Handy.p12
cipher AES-256-CBC
auth SHA1
comp-lzo
verb 3
ns-cert-type server
I just get the impression, that any dns request is using the local dns server setting of the handy.
What do I have to configure ?
Best regards
R.