Code Monkey home page Code Monkey logo

l2tp-ipsec-tutorial's Introduction

L2TP/IPsec on MikroTik RouterOS tutorial

This tutorial will guide you to quickly setup L2TP/IPSec VPN using WinBox.

Tools used:

  • WinBox v6.41
  • RB951G-2HnD

Clients which have been tested and are able to connect:

  • iOS v11.2.1
  • Windows 10 (1709)

L2TP setup

In the PPP menu, select Interface tab and click L2TP Server button.

L2TP Server

Profile used:

PPP Profile - General tab

Local Address is set to the internal IP address for MikroTik. Remote Address is taken from the pool and will be assigned to the connected client.

PPP Profile - Protocols tab

IP Pool example:

IP Pool

Make sure that the VPN client IP address range does not overlap with an existing range.

PPP Secret - Adding clients

Add client accounts.

IPSec setup

In the IP menu select IPSec. Create new peer as shown:

IPSec Peer - General tab

IPSec Peer - Advanced tab

IPSec Peer - Encryption tab

Set up IPSec proposal.

IPSec Proposal

Firewall

To allow outside connections accept UDP on ports 500, 1701 and 4500.

Firewall rules

If you would like to apply firewall rules per user, you can set up bindings.

L2TP Binding

Firewall rules - per binding

FAQ

Q1. Windows 10 client completes IPSec phase 1, but is stuck after that. What is needed to complete the L2TP circuit?

A1. On the client, start PowerShell as Administrator. Execute the following command and reboot the PC.

Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\PolicyAgent -Name AssumeUDPEncapsulationContextOnSendRule -Value 2 -Type DWord

l2tp-ipsec-tutorial's People

Contributors

bomsi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.