Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Overview

RouterOS supports Point-to-Point Tunneling Protocol (PPTP ) which is one of the obsolete methods for implementing a VPN.

Introduction

PPTP has many known security issues and we are not recommending to use do not recommend using it. However, this protocol is integrated into common operating systems, and it is easy to set it up. PPTP can be useful in networks where security concerns are is not consideredof concern.

PPTP traffic uses TCP port 1723 and IP protocol GRE (Generic Routing Encapsulation, IP protocol ID 47), as assigned by the Internet Assigned Numbers Authority (IANA). PPTP can be used with most firewalls and routers by enabling traffic destined for TCP port 1723 and protocol 47 traffic to be routed through the firewall or router.  PPTP includes PPP authentication and accounting for each PPTP connection. Full authentication and accounting of each connection may be done through a RADIUS client or locally.

PPTP Client

Properties

PropertyDescription
add-default-route (yes | no; Default: no)Whether to add PPTP remote address as a default route.
allow (mschap2 | mschap1 | chap | pap; Default: mschap2, mschap1, chap, pap)Allowed authentication methods.
connect-to (IP; Default: )Remote address of PPTP server
default-route-distance (byte [0..255]; Default: 1)sets distance value applied to auto created default route, if add-default-route is also selected
dial-on-demand (yes | no; Default: no)connects to PPTP server only when outbound traffic is generated. If selected, then route with gateway address from 10.112.112.0/24 network will be added while connection is not established.
disabled (yes | no; Default: yes)Whether interface is disabled or not. By default it is disabled
keepalive-timeout (integer; Default: 60)Sets keepalive timeout in seconds.
max-mru (integer; Default: 1450)Maximum Receive Unit. Max packet size that PPTP interface will be able to receive without packet fragmentation.
max-mtu (integer; Default: 1450)Maximum Transmission Unit. Max packet size that PPTP interface will be able to send without packet fragmentation.
mrru (disabled | integer; Default: disabled)Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.
name (string; Default: )Descriptive name of the interface.
password (string; Default: "")Password used for authentication.
profile (name; Default: default-encryption)
user (string; Default: )User name used for authentication.

PPTP Server

Code Block
languageros
/interface pptp-server

An interface is created for each tunnel established to the given server. There are two types of interfaces in the L2TP PPTP server's configuration:

  • Static interfaces are added administratively if there is a need to reference the particular interface name (in firewall rules or elsewhere) created for the particular user;
  • Dynamic interfaces are added to this list automatically whenever a user is connected and its username does not match any existing static entry (or in case the entry is active already, as there can not be two separate tunnel interfaces referenced by the same name);

...

Note
In both cases PPP users must be configured properly - static entries do not replace PPP configuration.

Access Concentrator

Code Block
languageros
[admin@MikroTik] > interface pptp-server server

The PPTP server (access concentrator) supports multiple servers for each interface - with differing service names. The access concentrator name and PPTP service name are used by clients to identify the access concentrator to register with. The access concentrator name is the same as the identity of the router displayed before the command prompt. The identity may be set within the /system identity submenu.

To enable the PPTP server:

Code Block
languageros
[admin@MikroTik] > interface pptp-server server set enabled=yes
[admin@MikroTik] > interface pptp-server server print 
enabled: yes
max-mtu: 1450
max-mru: 1450
mrru: disabled
authentication: mschap1,mschap2
keepalive-timeout: 30
default-profile: default-encryption

...

Properties

PropertyDescription
authentication (pap | chap | mschap1 | mschap2; Default: mschap1,mschap2)Authentication methods that server will accept.
default-profile (name; Default: default-encryption)
enabled (yes | no; Default: no)Defines whether PPTP server is enabled or not.
keepalive-timeout (time; Default: 30)If server during keepalive period does not receive any packet, it will send keepalive packets every second five times. If the server does not receives response from the client, then disconnect after 5 seconds. Logs will show 5x "LCP missed echo reply" messages and then disconnect.
max-mru (integer; Default: 1450)Maximum Receive Unit. Max packet size that PPTP interface will be able to receive without packet fragmentation.
max-mtu (integer; Default: 1450)Maximum Transmission Unit. Max packet size that PPTP interface will be able to send without packet fragmentation.
mrru (disabled | integer; Default: disabled)Maximum packet size that can be received on the link. If a packet is bigger than tunnel MTU, it will be split into multiple packets, allowing full size IP or Ethernet packets to be sent over the tunnel.

Example

PPTP Client

The following example demonstrates how to set up a PPTP client with username "MT-User", password "StrongPass" and server 192.168.62.2:

...