OpenVPN working but don't know how to map

Windows Access Rights Management

OpenVPN working but don't know how to map

Postby under72 » Fri Apr 27, 2012 6:16 am

Hi,

I have a TS-119P+ (3.5.2 Build 1126T). I managed to install OpenVPN on QNAP and I am able to connect to it from outside the network. My problem is that I can't map my QNAP drive over VPN. Is there anything I need to enable in my QNAP? how do you map a QNAP drive over OpenVPN?

Any help would be appreciated.

PS: I tried to turn off the firewall.
Thanks
under72
New here
 
Posts: 7
Joined: Fri Nov 04, 2011 9:21 am
NAS Model: TS-412U

Re: OpenVPN working but don't know how to map

Postby schumaku » Fri Apr 27, 2012 4:52 pm

See here viewtopic.php?f=45&t=58627 for example...
User avatar
schumaku
Guru
 
Posts: 22286
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: OpenVPN working but don't know how to map

Postby under72 » Fri Apr 27, 2012 10:26 pm

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)
Image

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
Last edited by under72 on Fri Apr 27, 2012 10:34 pm, edited 2 times in total.
under72
New here
 
Posts: 7
Joined: Fri Nov 04, 2011 9:21 am
NAS Model: TS-412U

Re: OpenVPN working but don't know how to map

Postby schumaku » Fri Apr 27, 2012 10:30 pm

The NAS is on 10.8.0.1 ...
User avatar
schumaku
Guru
 
Posts: 22286
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: OpenVPN working but don't know how to map

Postby under72 » Sat Apr 28, 2012 12:41 am

Worked thanks...sometimes mapping takes a little longer to find NAS
under72
New here
 
Posts: 7
Joined: Fri Nov 04, 2011 9:21 am
NAS Model: TS-412U


Return to Windows

Who is online

Users browsing this forum: No registered users and 2 guests