Hi,
I have followed this tutorial
http://readwrite.com/2014/04/10/raspberry-pi-vpn-tutorial-server-secure-web-browsing, but am having problems connecting to my VPN.
When i try to connect through either my laptop or Android phone it gets stuck on "looking up DNS name" and finally says "connection timed out" my config file is as follows:
local 192.168.0.51 # SWAP THIS NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
dev tun
proto tcp #Some people prefer to use tcp. Don't change it if you don't know.
port 433
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/VPNserver.crt # SWAP WITH YOUR CRT NAME
key /etc/openvpn/easy-rsa/keys/VPNserver.key # SWAP WITH YOUR KEY NAME
dh /etc/openvpn/easy-rsa/keys/dh1024.pem # If you changed to 2048, change that$
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.0.51 255.255.255.0" # SWAP THE IP NUMBER WITH YOUR RASPBER$
# 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.0.1" # This should already match your router add$
# 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 server name is VPNserver yet i have named my config file server.conf, will this affect it?
A bit more information about my setup in case it is required is that i am using a DDNS rather than a static public IP, and i am using tcp 433 rather than udp 1194 due to router restrictions.
Thanks in advance
Richard