I am trying to set up my first VPN and could really use some help. I would like to eventually set up a bridged configuration as I am deployed overseas and would really like to access my NAS and other computers as if I were on my home LAN. However, right now I am simply trying to get the static key configuration to work described here:
http://openvpn.net/index.php/open-source/documentation/miscellaneous/78-static-key-mini-howto.html
I set up both config files and static keys on server side and client side.
Client output
sudo openvpn --config config.ovpn
Sun Nov 30 05:03:20 2014 OpenVPN 2.3.2 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on May 2 2014
Sun Nov 30 05:03:20 2014 TUN/TAP device tun0 opened
Sun Nov 30 05:03:20 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sun Nov 30 05:03:20 2014 /sbin/ip link set dev tun0 up mtu 1500
Sun Nov 30 05:03:20 2014 /sbin/ip addr add dev tun0 local 10.8.0.2 peer 10.8.0.1
Sun Nov 30 05:03:20 2014 UDPv4 link local (bound): [undef]
Sun Nov 30 05:03:20 2014 UDPv4 link remote: [AF_INET][REDACTED]:1194
Sun Nov 30 05:03:30 2014 Peer Connection Initiated with [AF_INET][REDACTED]:1194
Sun Nov 30 05:03:31 2014 Initialization Sequence Completed
Server output:
senlis@ubuntuServer:~/openVPN$ sudo openvpn --config config.ovpn
Sat Nov 29 18:59:35 2014 OpenVPN 2.3.2 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Feb 4 2014
Sat Nov 29 18:59:35 2014 WARNING: file 'static.key' is group or others accessible
Sat Nov 29 18:59:35 2014 TUN/TAP device tun0 opened
Sat Nov 29 18:59:35 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Sat Nov 29 18:59:35 2014 /sbin/ip link set dev tun0 up mtu 1500
Sat Nov 29 18:59:35 2014 /sbin/ip addr add dev tun0 local 10.8.0.1 peer 10.8.0.2
Sat Nov 29 18:59:35 2014 UDPv4 link local (bound): [undef]
Sat Nov 29 18:59:35 2014 UDPv4 link remote: [undef]
Sat Nov 29 19:00:15 2014 Peer Connection Initiated with [AF_INET][REDACTED]:10985
Sat Nov 29 19:00:15 2014 Initialization Sequence Completed
Sat Nov 29 19:01:08 2014 Peer Connection Initiated with [AF_INET][REDACTED]:1194
I disabled firewalls on both client and server. Port forwarding is set up on the server side router for 1194. I can access the internet, but I cannot ping the VPN server. Also, websites identify that I am in the middle east instead of America (Netflix still says it is unnavailable in my region). If anyone can identify my problem, I would greatly appreciate it.