This is the server config file:
local 95.138.xxx.xx
port 1194 #- port
proto udp #- protocol
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
reneg-sec 0
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login #- Comment this line if you are using FreeRADIUS
#plugin /etc/openvpn/radiusplugin.so /etc/openvpn/radiusplugin.cnf #- Uncomment this line if you are using FreeRADIUS
client-cert-not-required
username-as-common-name
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status 1194.log
verb 3
------------------------------------------------------------------------------------------------------------------------------------------------
and this is the client config file:
client
dev tun
proto udp
remote 95.138.xxx.xx 1194 # - Your server IP and OpenVPN Port
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ca ca.crt
auth-user-pass
comp-lzo
reneg-sec 0
verb 3
-------------------------------------------------------------------------------------------------------------------------------------------
log on local machine (client)
Jun 6 09:31:11 dev NetworkManager[742]: <info> Starting VPN service 'openvpn'...
Jun 6 09:31:11 dev NetworkManager[742]: <info> VPN service 'openvpn' started (org.freedesktop.NetworkManager.openvpn), PID 4211
Jun 6 09:31:11 dev NetworkManager[742]: <info> VPN service 'openvpn' appeared; activating connections
Jun 6 09:31:11 dev NetworkManager[742]: <info> VPN plugin state changed: starting (3)
Jun 6 09:31:11 dev NetworkManager[742]: <info> VPN connection 'Gotri OpenVPN' (Connect) reply received.
Jun 6 09:31:11 dev nm-openvpn[4217]: OpenVPN 2.3.2 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Jul 12 2013
Jun 6 09:31:11 dev nm-openvpn[4217]: WARNING: No server certificate verification method has been enabled. See
http://openvpn.net/howto.html#mitm for more info.
Jun 6 09:31:11 dev nm-openvpn[4217]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Jun 6 09:31:11 dev nm-openvpn[4217]: UDPv4 link local: [undef]
Jun 6 09:31:11 dev nm-openvpn[4217]: UDPv4 link remote: [AF_INET]95.138.xxx.xx:1194
Jun 6 09:31:32 dev whoopsie[1046]: online
Jun 6 09:31:51 whoopsie[1046]: last message repeated 2 times
Jun 6 09:31:51 dev NetworkManager[742]: <warn> VPN connection 'Gotri OpenVPN' (IP Config Get) timeout exceeded.
Jun 6 09:31:51 dev NetworkManager[742]: <info> Policy set 'Auto Ethernet' (eth0) as default for IPv4 routing and DNS.
Jun 6 09:31:51 dev nm-openvpn[4217]: SIGTERM[hard,] received, process exiting
Jun 6 09:31:56 dev NetworkManager[742]: <info> VPN service 'openvpn' disappeared
--------------------------------------------------------------------------------------------------------------------------------------------------------
server log 1194.log
OpenVPN CLIENT LIST
Updated,Fri Jun 6 08:42:20 2014
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
GLOBAL STATS
Max bcast/mcast queue length,0
END