

It is possible to run a L2TP connection between RouterOS and Windows but you will need to change a registry entry in Windows.ĭo not forget to allow UDP 500 (Dst.Port), UDP 1701, UDP 4500 (Nat-Traversal) and Protocol 50 (ESP) in the firewall filter settings. We will see how to create L2TP/IPsec between MikroTik RouterOS and Windows. Microsoft Windows XP/Vista has built-in PPTP client and L2TP/IPSec client. MikroTik RouterOS and Windows XP IPSec/L2TP Generate-policy=yes to generate IPSec policy automatically Hash-algorithm=sha and enc-algorithm=3des are used by default on Windows XP Make sure to specify the network mask using /0.) Secret=123456789 hash-algorithm=sha enc-algorithm=3des generate-policy=yesĪdd IPSec peer settings settings, these settings should match at both ends,Īddress=192.168.1.1 address of your Windows computer, it's possible to use 0.0.0.0/0, when IP address of remote client is unknown (Note: Typing 0.0.0.0 (without /0) makes Mikrotik listen to 0.0.0.0 only, therefore disabling any connection. ip ipsec peer add address=192.168.1.1:500 auth-method=pre-shared-key \ Both can be assigned from the identical pool. It is also possible to use any DHCP address pool instead of local and remote addresses. Adjust Windows and RouterOS L2TP tunnel properties whether to run encryption or not. Local-address=192.168.1.1 remote-address=192.168.1.2Īdd PPP client, if you don't need to run double encryption use default profile for L2TP and keep with IPSec encryption. ppp secret add name=12345 password=12345 profile=default-encryption \ interface l2tp-server server set enabled=yes
