
500 UDP - Internet Key Exchange (IKE, used for L2TP over IPsec).51 UDP - Authentication Header (AH) - under ipsec-ah protocol in firewall.50 UDP- Encapsulation Header (ESP) - under ipsec-esp protocol in firewall.1701 UDP - L2TP - under l2tp protocol in firewall.In order for the VPN to work, we need to allow these protocols and ports on the Mikrotik and any other device if behind a NAT. Select l2tp as a service and use the vpn-client profile. Name is the username you will be connecting with. To create a new VPN user, go to the Secrets tab of PPP and create a new secret. Make sure that the Protocols tab is the same between the two profiles. Open up the vpn-client profile and leave the Local Address and Remote Address blank. In the protocols tab, I’d recommend leaving MPLS and compression to default and set encryption to required. Set the Local Address to the IP address of the router and select the DHCP pool for VPN connections in the Remote Address selection. L2TP profile setupįirst setup the vpn-server profile. Don’t use the default profiles as they’re insecure. After creating a new VPN pool, go to the PPP menu and create two profiles called vpn-server and vpn-client. For extra security, you could also create a completely new IP subnet. It is heavily recommended to create a specific DHCP IP Pool for local clients and VPN connections. For better security, its HEAVILY recommended to use OpenVPN or IKEv2 instead of L2TP with IPSec. This guide is for educational purposes only. Most Mikrotik devices have dedicated hardware for encrypting and decrypting traffic with L2TP VPN that doesn’t strain the hardware heavily, unlike OVPN is CPU only bound. L2TP w/ IPSec is the recommended VPN to be used, as Liberty Global doesn’t block it, its easy to setup without having to setup certificates, its widely supported (Windows doesn’t require a third party client) and supports IPSec tunneling encryption.

It is recommended to research how to harden the security of the VPN connection and on the VPN Server itself. This guide is basic and there’s many things to expand on. Both server and client are behind a NAT, server has dynamic IP and uses DDNS. This guide uses Mikrotik RB751U-2HnD as a client and a Mikrotik RB750GL as a VPN server. L2TP with IPSec Point to Point VPN setup on Mikrotik devices
