Hi, I've build a VPN server of OpenVPN in my new terramaster Nas and i have connected successfully with a windows PC outside the Network. The problem it's that i cannot acces to NAS when i enter the Nas local ip on explorer like i did in LAN or i can't map the nas.
I had done a few test but i don't know where is the problema.
-Ping virtual IP of NAS -> 4 packages lost, 100% lost.
-Ping local IP of NAS -> 4 packages lost, 100% lost.
-Ping router IP where the NAS is -> 4 packages lost, 100% lost.
-Allow clients to access the server LAN activated in OpenVPN config in NAS.
What could be the problem?
dev tun
tls-client
remote xxx.duckdns.org 1xxx
# The "float" tells OpenVPN to accept authenticated packets from any address,
# not only the address which was specified in the --remote option.
# This is useful when you are connecting to a peer which holds a dynamic address
# such as a dial-in user or DHCP client.
# (Please refer to the manual of OpenVPN for more information.)
#float
# If redirect-gateway is enabled, the client will redirect it's
# default network gateway through the VPN.
# It means the VPN connection will firstly connect to the VPN Server
# and then to the internet.
# (Please refer to the manual of OpenVPN for more information.)
redirect-gateway def1
# dhcp-option DNS: To set primary domain name server address.
# Repeat this option to set secondary DNS server addresses.
#dhcp-option DNS DNS_IP_ADDRESS
pull
# If you want to connect by Server's IPv6 address, you should use
# "proto udp6" in UDP mode or "proto tcp6-client" in TCP mode
proto udp
script-security 2
reneg-sec 0
comp-lzo
cipher RC2-64-CBC
auth SHA256
auth-user-pass
<ca>
-OpenVPN connection log
Sun Jul 12 21:30:27 2020 OpenVPN 2.4.9 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 16 2020
Sun Jul 12 21:30:27 2020 Windows version 6.2 (Windows 8 or greater) 64bit
Sun Jul 12 21:30:27 2020 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10
Enter Management Password:
Sun Jul 12 21:30:29 2020 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Sun Jul 12 21:30:29 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]83.47.213.xxx:1xxx
Sun Jul 12 21:30:29 2020 UDP link local (bound): [AF_INET][undef]:1194
Sun Jul 12 21:30:29 2020 UDP link remote: [AF_INET]83.47.213.xxx:1xxx
Sun Jul 12 21:30:29 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sun Jul 12 21:30:29 2020 [TNAS-1DE4B8] Peer Connection Initiated with [AF_INET]83.47.213.xxx:1xxx
Sun Jul 12 21:30:30 2020 open_tun
Sun Jul 12 21:30:30 2020 TAP-WIN32 device [Conexión de área local] opened: \\.\Global\{D3BAD69B-F9CE-4258-A4D2-D8801261387B}.tap
Sun Jul 12 21:30:30 2020 Notified TAP-Windows driver to set a DHCP IP/netmask of 172.10.xx.x/255.255.255.252 on interface {D3BAD69B-F9CE-4258-A4D2-D8801261387B} [DHCP-serv: 172.10.11.5, lease-time: 31536000]
Sun Jul 12 21:30:30 2020 Successful ARP Flush on interface [14] {D3BAD69B-F9CE-4258-A4D2-D8801261387B}
Sun Jul 12 21:30:35 2020 ROUTE: route addition failed using service: El objeto ya existe. [status=5010 if_index=14]
Sun Jul 12 21:30:35 2020 Initialization Sequence Completed
[/olog]