{"id":1721,"date":"2015-11-14T20:53:48","date_gmt":"2015-11-14T20:53:48","guid":{"rendered":"http:\/\/emtunc.org\/blog\/?p=1721"},"modified":"2015-12-06T21:04:38","modified_gmt":"2015-12-06T21:04:38","slug":"setting-up-a-vpn-tunnel-on-draytek-nordvpn","status":"publish","type":"post","link":"https:\/\/emtunc.org\/blog\/11\/2015\/setting-up-a-vpn-tunnel-on-draytek-nordvpn\/","title":{"rendered":"Setting up a VPN Tunnel on Draytek &#8211; NordVPN"},"content":{"rendered":"<p>In this step-by-step article I will go through setting up a VPN tunnel on the Draytek 2860n router &#8211; I will set-up the tunnel using the <a href=\"http:\/\/nordvpn.com\/?ref=7792432\" target=\"_blank\">NordVPN service<\/a>\u00a0&#8211;\u00a0I recommend you check them out &#8211; they&#8217;re awesome, <a href=\"https:\/\/torrentfreak.com\/anonymous-vpn-service-provider-review-2015-150228\/\" target=\"_blank\">take privacy seriously<\/a> and you get 20% off if you use the link above \ud83d\ude42 &#8211;\u00a0however the instructions should be similar on other Draytek models and VPN service providers.<br \/>\nUsing this article as a guide, you can set up your router to establish a VPN tunnel such that all traffic (or some as we&#8217;ll get on to later) on your network will pass through the VPN tunnel; thus doing away with the need to set up and configure separate clients for all your devices. You also get the advantage that guests on\u00a0your network will seamlessly\u00a0send\u00a0traffic through the tunnel without any additional configuration.<\/p>\n<p><!--more--><\/p>\n<h3>Draytek Configuration &#8211; All Traffic Through VPN<\/h3>\n<p>First we need to disable all unused WAN interfaces. If you don&#8217;t do this then you won&#8217;t be able to check the &#8220;<em>Change default route to this VPN tunnel ( Only single WAN supports this )<\/em>&#8221; option. Granted you can probably create a manual static route anyway but that&#8217;s not ideal.<\/p>\n<p>Click General Setup under the WAN menu then\u00a0disable all unused WAN links.<\/p>\n<p><a href=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-11_54_51-DrayTek-Vigor2860-Series.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1726\" src=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-11_54_51-DrayTek-Vigor2860-Series.png\" alt=\"2015-11-14 11_54_51-DrayTek Vigor2860 Series\" width=\"1435\" height=\"370\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-11_54_51-DrayTek-Vigor2860-Series.png 1435w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-11_54_51-DrayTek-Vigor2860-Series-300x77.png 300w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-11_54_51-DrayTek-Vigor2860-Series-1024x264.png 1024w\" sizes=\"auto, (max-width: 1435px) 100vw, 1435px\" \/><\/a><\/p>\n<p>Next click on LAN to LAN under the VPN and Remote Access menu. Assuming you have no profiles already set-up then just click the first one. You can see that I already have one (currently offline)<\/p>\n<p><a href=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-12_20_53-DrayTek-Vigor2860-Series.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1727\" src=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-12_20_53-DrayTek-Vigor2860-Series.png\" alt=\"2015-11-14 12_20_53-DrayTek Vigor2860 Series\" width=\"1420\" height=\"636\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-12_20_53-DrayTek-Vigor2860-Series.png 1420w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-12_20_53-DrayTek-Vigor2860-Series-300x134.png 300w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-12_20_53-DrayTek-Vigor2860-Series-1024x459.png 1024w\" sizes=\"auto, (max-width: 1420px) 100vw, 1420px\" \/><\/a><\/p>\n<p>Now it&#8217;s time to configure the main options. I will briefly go through the options below.<\/p>\n<p>For <strong>profile name<\/strong> you can call it whatever you like. I called mine nordvpn followed by the location of the destination server.<br \/>\n<strong>VPN dial-out<\/strong> via WAN1 &#8211; for you it may not be WAN1 so make sure you select the right one (check first screenshot of this article).<br \/>\n<strong>Netbios and multicast<\/strong> are unlikely to be used so block these so you don&#8217;t send unnecessary traffic over the tunnel.<br \/>\n<strong>Call direction<\/strong> is self explanatory.<br \/>\n<strong>Always on<\/strong> makes the VPN tunnel &#8216;permanent&#8217; otherwise it&#8217;ll timeout after a default inactivity period of 5 minutes. If you want to manually establish the VPN tunnel then you should uncheck this box.<br \/>\nUnder <strong>dial-out settings<\/strong>, the <strong>username and password<\/strong> will be your NordVPN credentials. This would be a good time to ensure you have generated a secure password for your NordVPN account!<br \/>\nThe <strong>type of server you are calling is L2TP with IPsec Policy<\/strong> = Must. This is the most secure and recommended method.<br \/>\nThe sever you are connecting to is one of your choice &#8211; <a href=\"https:\/\/nordvpn.com\/servers\/\" target=\"_blank\">choose one from the many here.<\/a><br \/>\nThe <strong>pre-shared key<\/strong> is nordvpn<br \/>\nAgain, for maximum security, set the <strong>IPsec security method<\/strong> to High(ESP) AES with Authentication<br \/>\n<strong>From first subnet to remote network, you have to do<\/strong> NAT.<br \/>\n<strong>Change default route to this VPN tunnel ( Only single WAN support this )\u00a0<\/strong>you want to check this box to make all traffic go via the VPN.<\/p>\n<p><a href=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-14_02_14-DrayTek-Vigor2860-Series.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1730\" src=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-14_02_14-DrayTek-Vigor2860-Series.png\" alt=\"2015-11-14 14_02_14-DrayTek Vigor2860 Series\" width=\"530\" height=\"1000\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-14_02_14-DrayTek-Vigor2860-Series.png 530w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-14_02_14-DrayTek-Vigor2860-Series-159x300.png 159w\" sizes=\"auto, (max-width: 530px) 100vw, 530px\" \/><\/a><\/p>\n<p>Click OK. This will establish the tunnel which can take a few seconds. Click Connection Management under the VPN and Remote Access menu to see the status of the tunnel. In my set-up you can see that the tunnel is up and traffic is passing through it.<\/p>\n<p><a href=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-14_38_51-DrayTek-Vigor2860-Series.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1731\" src=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-14_38_51-DrayTek-Vigor2860-Series.png\" alt=\"2015-11-14 14_38_51-DrayTek Vigor2860 Series\" width=\"1408\" height=\"452\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-14_38_51-DrayTek-Vigor2860-Series.png 1408w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-14_38_51-DrayTek-Vigor2860-Series-300x96.png 300w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-14_38_51-DrayTek-Vigor2860-Series-1024x329.png 1024w\" sizes=\"auto, (max-width: 1408px) 100vw, 1408px\" \/><\/a><\/p>\n<h3>Draytek Configuration &#8211; Advanced Configuration<\/h3>\n<p>Note: You will need firmware version 3.8.1 which was released on the 8th October 2015. Previous versions of firmware please follow the instructions <a href=\"http:\/\/www.draytek.co.uk\/support\/guides\/kb-policy-routing-guide\" target=\"_blank\">here<\/a>.<\/p>\n<p>Route policies allow you to configure\u00a0<em>exactly<\/em> which IP&#8217;s, subnets and ports will go over the VPN tunnel. This is really useful because you can configure things like <strong>all<\/strong> web traffic (80 and 443) go over the VPN tunnel but everything else goes out through your ISP as normal.<\/p>\n<p>Before we start configuring the route policies you need to make sure you uncheck the &#8220;<em>Change default route to this VPN tunnel ( Only single WAN supports this )&#8221;\u00a0<\/em>option in\u00a0your LAN to LAN profiles otherwise the default route will always point to the VPN tunnel.<\/p>\n<p>Click General Setup under the Load-Balance\/Route Policy menu.<\/p>\n<p>Click the first rule and configure a source IP range or subnet (enter the same IP twice if you just want one address) and any destination IPs or ports that you want to tunnel then select the Interface to be VPN.<\/p>\n<p>In the example below I configured my machine (192.168.1.2) to forward HTTP traffic\u00a0(80) over the VPN interface. You can see in the web browser windows that HTTPS traffic was\u00a0(https\/443) not affected by the change but the HTTP window on the right gets the tunnel IP. Cool right?<\/p>\n<p><a href=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-19_52_21-DrayTek-DrayTek-Vigor2860-Series1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1740\" src=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-19_52_21-DrayTek-DrayTek-Vigor2860-Series1.png\" alt=\"2015-11-14 19_52_21-DrayTek DrayTek Vigor2860 Series\" width=\"1910\" height=\"722\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-19_52_21-DrayTek-DrayTek-Vigor2860-Series1.png 1910w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-19_52_21-DrayTek-DrayTek-Vigor2860-Series1-300x113.png 300w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-19_52_21-DrayTek-DrayTek-Vigor2860-Series1-1024x387.png 1024w\" sizes=\"auto, (max-width: 1910px) 100vw, 1910px\" \/><\/a><\/p>\n<h3>Confirming your default routes and testing them<\/h3>\n<p>To make sure your default routes have been updated, click Routing Table under the Diagnostics menu. You should see the default route for all web bound traffic\u00a0(0.0.0.0\/0) being routed out the VPN tunnel (10.9.9.1 in this case).<\/p>\n<p><a href=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-15_09_40-DrayTek-Vigor2860-Series.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1732\" src=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-15_09_40-DrayTek-Vigor2860-Series.png\" alt=\"2015-11-14 15_09_40-DrayTek Vigor2860 Series\" width=\"1413\" height=\"469\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-15_09_40-DrayTek-Vigor2860-Series.png 1413w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-15_09_40-DrayTek-Vigor2860-Series-300x100.png 300w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-15_09_40-DrayTek-Vigor2860-Series-1024x340.png 1024w\" sizes=\"auto, (max-width: 1413px) 100vw, 1413px\" \/><\/a><\/p>\n<p>To confirm, we can run a trace route with the tunnel up and one with the tunnel down. This will tell us the next hop address which should either be the ISP router or VPN tunnel interface.<\/p>\n<p><strong>Tunnel down (normal internet access without any VPN active):<\/strong><\/p>\n<p><a href=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-16_24_05-DrayTek-Vigor2860-Series.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1733\" src=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-16_24_05-DrayTek-Vigor2860-Series.png\" alt=\"2015-11-14 16_24_05-DrayTek Vigor2860 Series\" width=\"699\" height=\"694\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-16_24_05-DrayTek-Vigor2860-Series.png 699w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-16_24_05-DrayTek-Vigor2860-Series-150x150.png 150w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-16_24_05-DrayTek-Vigor2860-Series-300x298.png 300w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/a><\/p>\n<p><strong>Tunnel up (VPN tunnel established and default route automatically changed):<\/strong><\/p>\n<p><a href=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-16_27_08-DrayTek-Vigor2860-Series.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1734\" src=\"http:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-16_27_08-DrayTek-Vigor2860-Series.png\" alt=\"2015-11-14 16_27_08-DrayTek Vigor2860 Series\" width=\"701\" height=\"717\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-16_27_08-DrayTek-Vigor2860-Series.png 701w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2015\/11\/2015-11-14-16_27_08-DrayTek-Vigor2860-Series-293x300.png 293w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/a><\/p>\n<h3>Things to keep in mind<\/h3>\n<ul>\n<li>You should create multiple LAN to LAN profiles (in fact it&#8217;s a good idea to do so in case a server goes down for maintenance) with different names. By doing this you can easily toggle between tunnels.<\/li>\n<\/ul>\n<p>Hope you found the article useful! Feel free to leave your comments or questions below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this step-by-step article I will go through setting up a VPN tunnel on the Draytek 2860n router &#8211; I will set-up the tunnel using the NordVPN service\u00a0&#8211;\u00a0I recommend you check them out &#8211; they&#8217;re awesome, take privacy seriously and you get 20% off if you use the link above \ud83d\ude42 &#8211;\u00a0however the instructions should [&hellip;]<\/p>\n","protected":false},"author":32,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[1],"tags":[167,212,126],"class_list":["post-1721","post","type-post","status-publish","format-standard","hentry","category-tech","tag-draytek","tag-nordvpn","tag-vpn"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1trTO-rL","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts\/1721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/comments?post=1721"}],"version-history":[{"count":16,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts\/1721\/revisions"}],"predecessor-version":[{"id":1749,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts\/1721\/revisions\/1749"}],"wp:attachment":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/media?parent=1721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/categories?post=1721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/tags?post=1721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}