Page 1 of 1
4.4.2 OpenVPN to Raspberry Pi: Looking up DNS Name > Timeout
Posted: Wed Jun 18, 2014 4:21 pm
by ajm422
Hi, I setup OpenVPN on my Raspberry Pi at home and can't seem to get my Android to connect. I used this tutorial:
http://readwrite.com/2014/04/10/raspber ... LV5d88r8s9 to set up my Raspberry Pi. I have port forwarding enabled. When I try and connect, I just get "Looking up DNS Name" for 1 minute before a timeout.
Can anyone help me out? I am happy to provide any information you may need to help me out. I'm relatively new to this.
Thanks!
Re: 4.4.2 OpenVPN to Raspberry Pi: Looking up DNS Name > Tim
Posted: Wed Jun 18, 2014 4:59 pm
by ajm422
This is my server.conf file:
Code: Select all
local 192.168.1.2
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/Parkwood.crt
key /etc/openvpn/easy-rsa/keys/Parkwood.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
# server and remote endpoints
ifconfig 10.8.0.1 10.8.0.2
# Add route to Client routing table for the OpenVPN Server
push "route 10.8.0.1 255.255.255.255"
# Add route to Client routing table for the OpenVPN Subnet
push "route 10.8.0.0 255.255.255.0"
# your local subnet
push "route 192.168.1.2 255.255.255.0"
# Set primary domain name server address to the SOHO Router
# If your router does not do DNS, you can use Google DNS 8.8.8.8
push "dhcp-option DNS 192.168.2.1"
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
cipher AES-128-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 20
log /var/log/openvpn.log
verb 1
My client is a Google Play Edition Sony Z Ultra with Android 4.4.2 installed along with OpenVPN Connect. How do I allow my client to resolve my server host name? I am using dnsdynamic.org and ddclient on my pi.
Re: 4.4.2 OpenVPN to Raspberry Pi: Looking up DNS Name > Tim
Posted: Mon Jul 07, 2014 6:43 am
by pkfox
ajm422 wrote:This is my server.conf file:
Code: Select all
local 192.168.1.2
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/Parkwood.crt
key /etc/openvpn/easy-rsa/keys/Parkwood.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
# server and remote endpoints
ifconfig 10.8.0.1 10.8.0.2
# Add route to Client routing table for the OpenVPN Server
push "route 10.8.0.1 255.255.255.255"
# Add route to Client routing table for the OpenVPN Subnet
push "route 10.8.0.0 255.255.255.0"
# your local subnet
push "route 192.168.1.2 255.255.255.0"
# Set primary domain name server address to the SOHO Router
# If your router does not do DNS, you can use Google DNS 8.8.8.8
push "dhcp-option DNS 192.168.2.1"
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
cipher AES-128-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 20
log /var/log/openvpn.log
verb 1
My client is a Google Play Edition Sony Z Ultra with Android 4.4.2 installed along with OpenVPN Connect. How do I allow my client to resolve my server host name? I am using dnsdynamic.org and ddclient on my pi.
I found when I set up my pi as a VPN server that in server.conf where you are supposed to put the pi ip address put the subnet instead e.g pi address = 192.168.1.2 ; the subnet would be 192.168.1.0 mine has been running perfectly for months now , let me know if you need more help.