V. VPN (Virtual Private Networking)
ExpiredNordVPN: How to connect a DrayTek VPN router with IKEv2 EAP
Many DrayTek Vigor routers support VPN tunnels with IPsec IKEv2 and EAP authentication. IPsec IKEv2 is a fast and secure VPN protocol and with EAP for authentication, the router can utilise X.509 certificates to ensure that the connection is established only with trusted hosts.
This article demonstrates how to create an IKEv2 EAP VPN tunnel from a DrayTek Vigor Router to NordVPN server.
Account & Initial Setup
1. You will need a NordVPN account. You can apply for a 30-day free trial NordVPN account via https://free.nordvpn.com/
2. Download the NordVPN root CA certificate from https://downloads.nordcdn.com/certificates/root.der
3. Get the NordVPN server domain from here
You may get a recommended server by selecting the country you located. In the following picture, uk960.nordvpn.com
is the hostname of the VPN server.
Router Setup - Installing the X.509 Certificate
To connect to NordVPN, the router will need to have the certificate from NordVPN loaded onto the router and configured as a trusted certificate. It can then be used for authentication.
4. Log into the router's management page. Go to [Certificate Management ] > ]Trusted CA Certificate] page, and click IMPORT. Click Choose File to select the root.der file we downloaded in step 2. Then, click Import.
5. Wait for a few seconds until the router responds “Import Success” and the Certificate Status shows OK.
6. Go to [VPN and Remote Access] > [IPsec Peer Identity], edit a profile to for NordVPN server.
- Check Enable this account
- Select Accept Any Peer ID
Router Setup - VPN Configuration
7. Go to [VPN and Remote Access] > [LAN to LAN], click on an available index number, and edit the profile as follows. In Common Settings,
- Give it a profile name
- Check Enable this profile
- Set Call Direction to "Dial-Out"
- At Dial-Out Through, select the WAN interface for VPN connection
8. In Dial-Out Settings,
- Select IKEv2 EAP for the VPN server type
- Enter the domain of VPN server we get in step 3 at Server IP address/Hostname
- Enter Username (It is the mail address you used for applying the NordVPN account)
- Enter Password (It is the one you configured while activating the NordVPN trial service)
- Choose "Digital Signature" for IKE Authentication Method, and select the IPsec Peer Identity Profile created in step 6 for Peer ID
- Select "AES with Authentication" for IPsec Security Method
- Click Advanced
9. Click Advanced button, In the IKE advanced settings pop-up windows, confgure:
- IKE phase 1 proposal as "AES256_SHA1_G14"
- IKE phase 2 proposal as "AES256_SHA1"
- IKE phase 1 key lifetime as "3600"
- IKE phase 2 key lifetime as "1200"
10. Click OK to close the window. At TCP/IP Network Settings:
- Enter Remote Network IP as "0.0.0.0"
- Select Remote Network Mask to "0.0.0.0/00"
- Change Routing to NAT for this VPN connection
- (optional) Enable Change Default Route to this VPN tunnel option if you want all traffic to go through NordVPN.
Checking VPN Status & Troubleshooting
11. After completing the above settings, we can check the VPN status via [VPN and Remote Access] > [Connection Management] page.
12. (optional) We can create Policy Route via [Routing] > [Load-Balance/Route Policy] to send specific traffic to the NordVPN tunnel.
This would be useful in situations whereby you want to specify an outbound interface for specific traffic. For example you want to use NordVPN as gateway for traffic which destined for an IP address or certain domain name. You could also use policy route to force certain LAN client’s traffic to go NordVPN, ensuring that only those LAN clients use the VPN when they are accessingthe internet.
For information on how to setup policy route can be found here
To verify the policy, we can use the command “tracert” to check if the defined traffic is going through the VPN tunnel correctly.
NOTE:
In order to accept large packets from NordVPN, Allow pass inbound fragmented large packets (required for certain games and streaming) should be enabled in [Firewall] > [General Setup].
How do you rate this article?
- First Published: 06/04/2020
- Last Updated: 16/11/2021