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!
4.4.2 OpenVPN to Raspberry Pi: Looking up DNS Name > Timeout
-
- OpenVpn Newbie
- Posts: 2
- Joined: Wed Jun 18, 2014 4:16 pm
-
- OpenVpn Newbie
- Posts: 2
- Joined: Wed Jun 18, 2014 4:16 pm
Re: 4.4.2 OpenVPN to Raspberry Pi: Looking up DNS Name > Tim
This is my server.conf file:
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.
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
-
- OpenVPN User
- Posts: 32
- Joined: Fri May 09, 2014 8:31 am
Re: 4.4.2 OpenVPN to Raspberry Pi: Looking up DNS Name > Tim
ajm422 wrote:This is my server.conf file:
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.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
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.