Authenticate SSL VPN Client by Windows 2008 R2 RADIUS Server
- DrayOS 4, imported, vigor_router, ssl_vpn, radius_auth, windows_server, nps
This document demonstrates how to configure Vigor Router to use a Windows 2008 R2 Server as RADIUS server and authenticate SSL VPN clients.
Vigor Router Setup
1. To allow Vigor Router to authenticate remote VPN clients with an external RADIUS server, we need to identify the RADIUS server. Go to Applications >> RADIUS/TACACS+:
- Check Enable
- Enter the IP address of the Windows Server in Server IP Address.
- Enter the Shared Secret and confirm. Note that we need to use the same Shared Secret value in Radius configuration on Windows 2008 R2 server.
- Click OK to save the settings.
Note: Vigor Router uses UTF-8 encoding, while Windows RADIUS server uses big5. Please prevent any special characters in Shared Secret with Windows RADIUS server.
2. Create an SSL User Group which allows authentication by RADIUS server: Go to SSL VPN >> User Group, click on an index number to edit the profile:
- Check Enable
- Enter Group Name
- Check "RADIUS" for Authentication Method.
- Click OK to save the settings.
Windows 2008 R2 Server Setup
1. Log in to the Windows 2008 R2 server and go to Server Manager. Create a user account and password by clicking Local Users and Groups >> Users.
2. Add Vigor Router to RADIUS Client: Go to Network Policy Server >> RADIUS Client and Servers, right-click RADIUS Clients, and then click New RADIUS Client:
- Check Enable this RADIUS Client
- Enter Friendly name
- For Address, enter the IP Address of Vigor Roter.
- Enter Shared Secret as the same in Vigor Router's RADIUS Setup.
- Click OK to save
3. Configure Connection Request Policies. If you have default policy "Use Windows authentication for all users" configured under connection request policies, then you can skip this step. Else it is required to set a connection request policy. Go to Network Policy Server >> Policies, right-click Connection Request Policies, and then click New Connection Request Policies:
- Enter a Policy name in the Overview tab.
- Select the Day and Time restrictions under the Conditions tab.
4. Configure Network Policies: Go to Network Policy Server >> Policies, right-click Network Policies and then click New Network Policies.
- In the Overview tab, enter policy name and other details.
- In the Conditions tab, select the user groups to whom you would like to give access for SSL VPN.
- In the Constraints tab. Set Authentication Methods as Unencrypted authentication.
Establishing the SSL VPN Connection
For SSL VPN Client, open web browser and enter https://<public IP>:<port number for SSL VPN> in address tab. For example, http://111.111.111.111:443. And you can log in to SSL VPN with the user profile in Windows 2008 R2 server.
We can check the Success Logs on Windows server from Event Viewer.
From the logs captured by Wireshark, we will see packets like this between Vigor Router and the Windows Server.
- Details
Dead Peer Detection (DPD) for IPsec
- ipsec, DrayOS 4, imported, vpn_tunnel, vigor3900, vigor2960, dead_peer_detection, peer_detection
Dead Peer Detection (DPD) is the method to detect the aliveness of an IPsec connection. During IPsec tunnel creation, VPN peers will negotiate to decide whether to use DPD or not. When DPD is in use, the router will send DPD packet R_U_THERE to the VPN peer and wait for peer's ACK. If there is no feedback from the peer, it will disconnect the IPsec tunnel.
All Vigor VPN Routers support IPsec DPD feature. For DrayOS models, DPD is enabled by default and cannot be turned off. When detecting no traffic over the IPsec tunnel, the router will send DPD packets every 15 seconds. If the peer doesn't respond for two times, the router will then disconnect the IPsec tunnel.
Model Vigor2960 and Vigor3900 support changing the Delay and Timeout Settings in the Advanced tab of IPsec profiles.
- Details
VPN Pass-Through Setup
- pptp, ipsec, nat, DrayOS 4, imported, remote_access_control, open_ports, vpn_pass_through, l2tp, firewall_general_setup
Vigor Router supports VPN pass-through to pass VPN traffic router's LAN. This article shows how to set up VPN pass-through on Vigor Router.
To do this, you will need:
1. Disable the VPN service on the router: Go to VPN and Remote Access >> Remote Access Control Setup, un-check the VPN protocol that you want to forward to the router's LAN.
2. Go to NAT >> Open Ports, and open the required port to the IP address of the VPN server. The ports required for each protocol are:
- PPTP: TCP 1723 (the router will also forward GRE IP47 automatically)
- L2TP: UDP 1701
- IPsec: UDP 500 and UDP 4500 if NAT-T is used (the router will also forward ESP IP50 automatically)
3. For IPsec that uses PKI authentication, it is necessary that “Accept large incoming fragmented UDP or ICMP packets” is enabled at Firewall >> General Setup.
Limitations of IPsec VPN
Noted that there are some limitations of IPsec VPN pass-through due to the incompatibilities between IPsec and NAT:
- IPsec with Authentication Header (AH) cannot pass through NAT because AH does not allow changing the IP header
- To pass through multiple outgoing IPsec tunnels, it requires that both the VPN client and server support NAT-Traversal (NAT-T). Without NAT-T, it only allows one outgoing IPsec VPN at the same time.
- L2TP with IPsec policy is in transport mode, which can only pass through NAT if both VPN client and server support NAT-T (Note: All Vigor Router support NAT-T).
- Details
IPsec VPN with X.509 Authentication from Windows to Vigor3900/2960 by Smart VPN Client
- windows, DrayOS 4, imported, ipsec_vpn, smart_vpn_client, remote_dial_in, certificate_auth, vigor3900, vigor2960, x509_auth
Vigor3900 can act as a CA server, and we can use the feature to generate and sign an X.509 certificate for a PC to create an IPsec tunnel with it. The examples below will show how to achieve the purpose with three parts.
- Part A: Certificate Generation and Import
- Part B: Create IPsec VPN Profile on Vigor3900 for PC to Dial-In
- Part C: Use Smart VPN Client to Dial IPsec VPN to Vigor3900
Part A: Certificate Generation and Import
1. On the Online Status page, check if the current System Time of Vigor3900 is equal to the Time of PC.
2. Open Certificate Management >> Trusted CA Certificate, click Build RootCA.
3. We will see Add Success Message and then can see the RootCA certificate listing on the Trusted CA page.
4. Open Certificate Management >> Local Certificate page, click Generate to create a local certificate.
5. We will see Add Success Message and then can see the local certificate listing on the Local Certificate page.
6. Open Certificate Management >> Local Certificate page, click Generate to create a certificate for the PC.
7. Select the certificate for PC and then click Download.
8. Select PKCS12 Certificate as the format, input the PKCS12 Password, and then click Download. The certificate will be saved to the PC with the filename pc.p12.
9. Delete the certificate for PC on the Local Certificate page.
10. Upload the downloaded PKCS12 Certificate pc.p12 to Vigor3900 via Certificate Management>> Remote Certificate page.
11. Make sure the certificate status is OK
12. Open Certificate Management >> Trusted CA Certificate to download the Trusted CA Certificate with format PKCS12 from Vigor3900 to PC. The Trusted CA certificate file will be saved with the filename RootCA.p12.
13. Run mmc on Windows PC to open the computer management console. Select Certificates then click Add.
- Certificates snap-in wizard will pop up, select Computer account, then click Next.
- Select Local computer and click Finish.
- Certificate components have been added successfully.
14. Import certificate pc.p12 as Personal Certificate.
- In Personal, right-click on Certificates and then click ALL Tasks >> Import...
- When Certificate Import Wizard starts, click Browse to select the certificate for PC which we downloaded from Vigor3900, then click Next.
- Type the password for the private key, and then click Next.
- Select Place all certificates in the following store “Personal”, then click Next.
- Click Finish to complete the Certificate Import Wizard.
- We can see the certificate
pcin Personal Certificates.
15. Import certificate RootCA.p12 as the Trusted Certificate.
- In Trusted Root Certification Authorities, right-click on Certificates and then click ALL Tasks >> Import.…
- When Certificate Import Wizard starts, click Browse to select the RootCA certificate which we downloaded from Vigor3900, then click Next.
- Type the password for the private key, and then click Next.
- Select Place all certificates in the following store “Trusted Root Certification Authorities”, then click Next.
- Click Finish to complete the Certificate Import Wizard.
- We can see the certificate
3900vivianin Trusted Root Certification Authorities.
Part B: Create IPsec VPN Profile on Vigor3900 for PC to Dial-In
Open VPN and Remote Access >> VPN Profiles, select IPsec and then click Add to create a new VPN profile.
- Select "Enable" for Remote Dial-In User.
- Input Vigor3900's local IP /Subnet Mask
- Specify Remote Host IP. If the remote host has a dynamic IP, please use
0.0.0.0. - Select “RSA” for Auth Type.
- Leave Local Certificate and Local ID fields as default. (This could be ignored for IPsec Remote Dial-In)
- In the Remote ID field, there are five types:
- Accept Any means accept connections as long as they have the same certificate issuer.
- Subject AlterName: IP means accept connections with the same IP as Subject AlterName. (The remote certificate must be generated with IP ID Type)
- Subject AlterName: Domain Name means accept connections with the same Domain Name as Subject AlterName. (The remote certificate must be generated with Domain Name ID Type)
- Subject AlterName: Email means accept connections with the same Email. (The remote certificate must be generated with ID Type Email)
- Certificate means accept connections with the same certificate (selected in the Remote Certificate field).
- In Remote Certificate, select the certificate “pc”.
- Apply the settings.
Part C: Use Smart VPN Client to Dial IPsec VPN to Vigor3900
1. Run Smart VPN Client and Insert a VPN profile.
2. In Dial to VPN window:
- Input Profile Name
- Select “IPsec Tunnel” for Type of VPN
- Enter Vigor3900's IP or hostname in VPN Server IP or Host Name
- Click OK.
3. In IPsec Policy Setting window,
- Select “Standard IPsec Tunnel” for Type of IPsec, and then input Remote Subnet and Remote Subnet Mask (which is the local network IP of Vigor3900)
- For Key-exchange Method, select “DH Group 2”
- Select Security Method as “ESP” and “3DES with MD5”
- For the Authentication Method, select “Certificate Authentication” and then click Browse to choose a certificate.
- Select the trusted CA we imported and click OK.
- Click OK to save the settings
4. Click Activate. Dial to VPN window will pop up, and then click OK.
5. Ping Vigor3900's LAN IP on the PC to trigger the IPsec tunnel. When seeing replies from the IP, it means the IPsec tunnel is up.
6. We may also see the IPsec connection status on Vigor3900 from the VPN and Remote Access >> Connection Management page.
- Details
GRE Tunnel between Cisco and DrayTek Router
- routing, DrayOS 4, imported, gre_tunnel, cisco_interop, lan_to_lan_vpn, tunnel_setup
This document introduces how to set up a GRE tunnel between a Cisco and a Vigor Router, and configure the GRE Tunnel IP address on both sides. GRE tunnel is supported on DrayOS with firmware version 3.8.2 or later.
Cisco Router Setup
1. Create a GRE Tunnel Interface on Cisco:
- Configure an IP address for GRE Tunnel interface
- Reduce the MTU to 1400 bytes the avoid fragmentation problem.
- For Tunnel Source, enter Cisco's WAN interface IP
- For Tunnel Destination, enter Vigor Router's WAN IP
2. Add a route to Vigor Router's network to be sent to the GRE Tunnel Interface
Vigor Router Setup
Before setting up the tunnel, please make sure PPTP service is enabled in VPN and Remote Access >> Remote Access Control.
3. On Vigor Router, go to VPN and Remote Access >> LAN to LAN to create a profile as follows:
- Enter Profile Name
- Check Enable this profile
- Enable GRE Tunnel Mode
4. In GRE Settings:
- Enter Peer GRE IP as the IP address of Cisco's CRE Tunnel Interface.
- Enter My GRE IP as an IP address in the same subnet of Peer GRE IP.
5. In TCP/IP Network Settings:
- Enter My WAN IP as Vigor Router's WAN IP.
- Enter Remote Gateway IP as Cisco's WAN IP.
- Enter Remote Network IP /Mask as the Cisco's network.
- Enter Local Network IP /Mask as the Vigor Router's LAN network.
Checking Connectivity
After the tunnel is up, from a computer on the Vigor Router's LAN, we will be able to ping the 192.168.11.0/24 network.
The GRE interface's IP address is also reachable.
In fact, by “tracert” command, we will see the packets are sent to the GRE interface's IP address first.
- Details
