User Tools

Site Tools


networking:router:mikrotik_vpn_l2tp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
networking:router:mikrotik_vpn_l2tp [2016/05/13 12:35]
jcooper created
networking:router:mikrotik_vpn_l2tp [2019/08/14 14:13] (current)
gcooper
Line 1: Line 1:
-====== Mikrotik PPTP VPN ======+====== Mikrotik L2TP VPN ======
  
-FIXME Needs verification and completion+**RouterOS v6.44 or above**: https://saputra.org/threads/mikrotik-l2tp-over-ipsec-vpn-server-tutorial-guide-for-routeros-v6-44.106/
  
-http://wiki.mikrotik.com/wiki/Manual:Interface/PPTP#Server_configuration+Stats: http://rickfreyconsulting.com/mikrotik-vpns/
  
-http://wiki.mikrotik.com/wiki/PPTP_Server_With_Profile+New info? http://wiki.mikrotik.com/wiki/Manual:IP/IPsec#Road_Warrior_setup_with_Mode_Conf
  
-  * All traffic routes through tunnel+FIXME Needs verification and completion
  
-===== Enable PPTP Server =====+http://wiki.mikrotik.com/wiki/Manual:Interface/L2TP#Server_configuration
  
-**PPP -> Interface -> PPTP Server -> Enable**+http://wiki.mikrotik.com/wiki/Manual:Interface/L2TP
  
-  * MTU 1460 +https://www.youtube.com/watch?v=tpgEqzwj_OQ
-  * MSCHAPv2 (encryption)+
  
-===== Create Single Users =====+  * All traffic routes through tunnel
  
-**PPP -> Secrets**+===== Enable L2TP Server =====
  
-  * **Name** +**PPP -> Interface -> L2TP Server -> Enable** 
-    * Username + 
-  * **Password** +  Max MTU 
-  * **Service** +    * L2TP has 40-byte overhead 
-    * ''pptp'' +    1450 - Lowering the MTU can speed up VPN - test path MTU first 
-  * **Local Address** +    1460 - Default - Good if uplink MTU is 1500 
-    * Same for all users +  * Default Profile 
-    * Router's LAN address +    * Select ''default-encryption'' or create your own profile 
-  * **Remote Address** +  * Authentication 
-    Different for each user +    * De-select ''chap'' and ''pap'' 
-    * Outside of DHCP range +    * Select ''MSCHAPv2'' and ''MSCHAP1'
-  * **Profile** +  * Select ''Use IPsec'' 
-    * ''default-encryption''+  Enter IPsec Secret needed to configure client 
 +  * Click ''OK''
  
 ===== Create IP Pool for Multiple Users ===== ===== Create IP Pool for Multiple Users =====
Line 38: Line 38:
 **IP -> Pool -> Add** **IP -> Pool -> Add**
  
-  * Range of addresses (192.168.1.10-192.168.1.20)+  * Name L2TPpool 
 +  * Range of addresses e.g. (192.168.1.10-192.168.1.20) outside of LAN DHCP range
  
 **PPP -> Profiles -> Default-Encryption** **PPP -> Profiles -> Default-Encryption**
Line 45: Line 46:
   * Remote Address (pool you created)   * Remote Address (pool you created)
  
-**PPP -> PPTP Server -> Secrets**+**PPP -> Interface -> L2TP Server**
  
-  * Specify profile (Default-Encryption)+  * Specify Default Profile -> ''default-encryption'' 
 + 
 +===== Create Users ===== 
 + 
 +**PPP -> Secrets -> Add+** 
 + 
 +  * **Name** 
 +    * Username 
 +  * **Password** 
 +  * **Service** 
 +    * ''l2tp'' 
 +  * **Local Address** (leave blank if using IP pool) 
 +    * Same for all users 
 +    * Router's LAN address 
 +  * **Remote Address** (leave blank if using IP pool) 
 +    * Different for each user  
 +    * Outside of DHCP range 
 +  * **Profile** 
 +    * ''default-encryption''
  
 ===== Proxy-ARP ===== ===== Proxy-ARP =====
Line 57: Line 76:
 **Interfaces -> etherN -> General -> ARP -> Proxy-ARP** **Interfaces -> etherN -> General -> ARP -> Proxy-ARP**
  
-===== Firewall ===== 
  
-**PPTP** uses: 
  
-  * TCP port 1723 
-  * GRE (protocol ID 47) for tunneling 
  
-Accept PPTP in Mikrotik: 
  
-<file> +
-/ip firewall filter add chain=input action=accept protocol=tcp dst-port=1723 +
-/ip firewall filter add chain=input action=accept protocol=gre +
-</file>+
networking/router/mikrotik_vpn_l2tp.1463164524.txt.gz · Last modified: 2016/05/13 12:35 (external edit)