I have looked at the post. After I connect to VPN, my assigned IP is 10.8.0.6. I tried to map the following with no success:
10.8.0.0
to
10.8.0.8
I am using the following mapping screen (of course with 10.8.... ip)

Here is my server config file
- Code: Select all
# OpenVPN server configuration QNAP NAS
# basic settings
port 1194
proto udp
dev tun
#
# detect mtu if the connection is slow.
; mtu-test
#
# define mtu, if necessary
; tun-mtu xyz
#
# define the ip-addresses of the underlying tunnel
server 10.8.0.0 255.255.255.0
#
# Route
push "route 192.168.0.0 255.255.255.0" # <--- Enter the ip-address of your home network here!
#
# certificates & keys
dh /opt/etc/openvpn/keys/dh1024.pem
ca /opt/etc/openvpn/keys/ca.crt
cert /opt/etc/openvpn/keys/server.crt
key /opt/etc/openvpn/keys/server.key
#
# data compression
comp-lzo
#
# allow, that several clients with the same common name log on
; duplicate-cn
#
# different clients can "see" each other through the tunnel.
; client-to-client
#
# Keepalive
keepalive 15 120
#
# verbosity of status messages in the console. Activate for debugging (1-9 possible)
; verb 5
#
# Log files
; status /share/HDA_DATA/optware/opt/etc/openvpn/log/status.log
; log-append /share/HDA_DATA/optware/opt/etc/openvpn/log/openvpn.log
#
# Run as daemon (activate, after everything is set up properly)
; daemon
#
# Management Interface. Access with "telnet localhost 7505"
management localhost 7505
And client config
- Code: Select all
# connect to QNAP OpenVPN Server
#
proto udp
dev tun
tls-client
remote xxx.xxxxxxxx.com 1194 # <--- enter your dyndns-account here!
pull
# set mtu, if necessary
; tun-mtu xyz
#
resolv-retry infinite
nobind
persist-key
persist-tun
# certificates and keys
# Note the double \\ in the path for a windows config
ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\client1.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\client1.key"
#
comp-lzo
And finally here is the log status of OpenVPN after connecting.
- Code: Select all
Fri Apr 27 10:19:20 2012 OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011
Fri Apr 27 10:19:20 2012 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Fri Apr 27 10:19:20 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Apr 27 10:19:20 2012 LZO compression initialized
Fri Apr 27 10:19:20 2012 UDPv4 link local: [undef]
Fri Apr 27 10:19:20 2012 UDPv4 link remote: xx.xxx.xxx.xx:1194
Fri Apr 27 10:19:22 2012 [server] Peer Connection Initiated with xx.xxx.xxx.xx:1194
Fri Apr 27 10:19:24 2012 TAP-WIN32 device [Local Area Connection 2] opened: \\.\Global\{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx}.tap
Fri Apr 27 10:19:24 2012 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.8.0.6/255.255.255.252 on interface {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx} [DHCP-serv: 10.8.0.5, lease-time: 31536000]
Fri Apr 27 10:19:24 2012 Successful ARP Flush on interface [18] {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx}
Fri Apr 27 10:19:29 2012 Initialization Sequence Completed