Quick Mikrotik L2tp VPN With Ipsec

preview_player
Показать описание
SCRIPT
/ip firewall filter add chain=input action=accept protocol=udp in-interface=ether1 dst-port=500,1701,4500

LT2P VPN ROUTER OS

Creating a L2tp vpn so that you can connect remotely

First Create the dhcp pool for vpn


Then create the l2tp server
Go to ppp
Click add interface server

Name the vpn

create the vpn profile by clicking profiles

This where you can set the DHCP pool

This is also where you will be able to choose encryption and session limits

Then create the shared key





Then you can create the user profile

Click secrets
Then name and create the credentials

Take note you can choose set the I.P or choose a range for the user


Now add the firewall rules ipsec ip sec vpn server vpn config

Navigate to the terminal and enter the script found in the comments


Click on interface …then L 2 t p server …. .Enable ….. Choose the profile created earlier ….Enter the shared key next to the box Ipsec secret….. Choose the profile created earlier ……. Note this is where you can choose the authentication protocols


Build your vpn adapter

Then connect


If you want to create several vpns for multiple users. There is an alternate method.

When creating the user profile specify a I.p. ... restrict the amount of sessions... and repeat for each user

You will also need to create a profile for each connection

And assign and create a new server binding

test routerOs router os
Рекомендации по теме