buy VPN with paypal Buy VPN with Paypal & Credit Card. To purchase VPN with PayPal & Credit Card, please contact us: sales [at] rapidvpn.com

How to create L2TP VPN connection on Mikrotik Router?

1Connect to your Mikrotik router using winbox or direct web connection, access “PPP” section from left area menu and click on “Interface” tab. Use “+” sign and click on “L2TP Client” from option list.
L2TP VPN connection on Mikrotik Router - Step 1
2On new opened window, in “General” tab, add “RapidVPN-L2TP” (or anything else you like) to “Name” field.
In the “Max MTU” and “Max MRU” field, type “1400
L2TP VPN connection on Mikrotik Router - Step 2
3In same window, click on “Dial Out” tab and add settings:
  • In “Connect to”, enter your RapidVPN server name or IP (Too see your server IP address, login here [Select "Configurations" from above-right] with your username and password).
  • In “User” field enter your RapidVPN username;
  • In “Password” field, enter your RapidVPN password;

L2TP VPN connection on Mikrotik Router - Step 3
Leave anything else unchanged, and click on “OK” button.
4Go to “IP” item from left area menu and select “Firewall” from dropdown submenu items. On new window that appear, click on “NAT” tab and use “+” sign to define a new rule.
Select “srcnat” in “Chain” select box. Into “Out. Interface”, select “RapidVPN-L2TP” (or anything else you have setup on step 2 on “Name” field).
L2TP VPN connection on Mikrotik Router - Step 4
5In “Action” tab, select “masquerade” in “Action” select box. Click “OK” when anything is setup.
L2TP VPN connection on Mikrotik Router - Step 5
6Now, in “Firewall” window, click on “Mangle” tab and use “+” sign to define a new mangle rule. In “New Mangle Rule” window, select “prerouting” in “Chain” select box and complete your desired local IP range into “Src. Address” field (in our example 192.168.1.100 to 192.168.1.200 used as local IP range).
L2TP VPN connection on Mikrotik Router - Step 6
7In same window, select “Action” tab and use “mark routing” in “Action” select box and “L2TP” for “New Routing Mark”. Keep “Passthrough” checked and click “OK” button.
L2TP VPN connection on Mikrotik Router - Step 7
8Select “IP” option from left side menu and “Routes” from submenu. Use “+” sign to create a new route for your RapidVPN Connection.
L2TP VPN connection on Mikrotik Router - Step 8

In “New Route” window, setup
  • Dst. Address” to “0.0.0.0/0
  • Gateway” should be selected as “RapidVPN-L2TP”. (If you used other name into step 2, please use that name as “Gateway” in current route.)
  • Use “L2TP” for “Routing Mark”.

All other fields should remain at their default values. Click “OK” when anything is setup.

L2TP VPN connection on Mikrotik Router - Step 9
9Check your Mikrotik DNS settings and setup Google Public DNS (as recommendation). To do this, you need to select “IP” from left side menu and “DNS” from submenu. It should be setup like in image provided bellow:
L2TP VPN connection on Mikrotik Router - Step 10

Note: In some countries (such as China) Google DNS might not work, so you can set OpenDNS instead of Google DNS:
208.67.222.222
208.67.220.220
10Enjoy using your new created RapidVPN connection on your Mikrotik router!