01-28-2017 08:29 AM - edited 03-05-2019 07:55 AM
Hello all,
I am stuck. I have connected a QNAP TS-451+ NAS behind my router. I am trying to use it as my VPN, but when I set up port forwarding on the router I am not having any luck. It appears that I am forgetting something.
I have tried ip nat inside source static udp 192.168.xxx.xxx 500 interface Fa0/0 500 for all three ports (500/1701/4500) needed for L2TP, but I cannot seem to connect.
Any advice would be appreciated.
01-28-2017 10:55 AM
Hello,
I assume the 192.168.xxx.xxx address is the fixed LAN IP address of the NAS ? As described in point 4 of the attached guide ?
https://www.qnap.com/en/tutorial/con_show.php?op=showone&cid=3
01-28-2017 10:58 AM
That is correct
01-28-2017 12:11 PM
Hello,
try to add the 'extendable' keyword to your static NAT entries, e.g.:
ip nat inside source static udp 192.168.xxx.xxx 500 interface Fa0/0 500 extendable
01-28-2017 02:22 PM
The router would not accept the extendable command.
01-28-2017 02:49 PM
Hello,
try and use the actual IP address of the Fa0/0 in your NAT statement.
ip nat inside source static udp 192.168.xxx.xxx. 500 xxx.xxx.xxx.xxx 500
01-28-2017 05:28 PM
I have a DHCP internet connection. Are you saying assign the second group the routers ip, or the ip assigned from the isp?
01-28-2017 11:27 AM
Hi,
I assume you've followed all QNAP steps for allowing VPN.
Do you have some logs on QNAP? Does the traffic arrives to the QNAP or not?
Have you checked the NAT on the router and did you do a debug ip packet to validate that traffic is routed to your QNAP device?
Is there any acl on the router? And what about the embedded firewall on your QNAP, did you opened all L2TP ports?
Thanks
PS: Please don't forget to rate and mark as correct answer if this answered your question
01-28-2017 02:22 PM
I have followed all QNAP instructions and enabled everything. The logs on the QNAP list nothing.
To be honest, I am not familiar with how to debug with ip packet.
All ports should be opened. I am listing my current config below.
Thanks!
01-28-2017 02:27 PM
Hi
Ok thanks.
Can you paste the output of show ip nat transl ?
Thanks
01-28-2017 02:44 PM
Pro Inside global Inside local Outside local Outside global
udp 76.xxx.xx.xx:500 192.168.1.5:500 --- ---
udp 76.xxx.xx.xx:1701 192.168.1.5:1701 --- ---
udp 76.xxx.xx.xx:4500 192.168.1.5:4500 --- ---
01-28-2017 02:54 PM
We will do a global acl (IP mot just UDP) to see what traffic is going through that server.
access-list 100 permit ip any host 192.168.1.5
debug ip packet 100 detail
Then, try to connect and copy/paste to this forum the output you had. Please put it into a text file.
Thanks
01-28-2017 05:27 PM
01-28-2017 06:00 PM
On your log file, there is a chat you had :-)
Seriously, did you tried to connect in L2TP? I see traffic forwarded to your NAS-Server.
Can you do the same test but add the statement below in your acl, to verify if it replies back:
access-list 100 permit ip host 192.168.1.5 any
I'm not very familiar with QNAP (I mostly use Synology) but could you check if you can enable some detailed logs ?
Does the firewall is enabled on QNAP?
Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide