Thursday, July 6, 2017

MikroTik | PPTP Server Configuration

PPTP is a secure tunnel for transporting IP traffic using PPP. PPTP encapsulates PPP in virtual lines that run over IP. PPTP incorporates PPP and MPPE (Microsoft Point to Point Encryption) to make encrypted links. The purpose of this protocol is to make well-managed secure connections between routers as well as between routers and PPTP clients (clients are available for and/or included in almost all OSs including Windows).

Multilink PPP (MP) is supported in order to provide MRRU (the ability to transmit full-sized 1500 and larger packets) and bridging over PPP links (using Bridge Control Protocol (BCP) that allows the sending of raw Ethernet frames over PPP links). This way it is possible to setup bridging without EoIP. The bridge should either have an administratively set MAC address or an Ethernet-like interface in it, as PPP links do not have MAC addresses. 

For more information: Wiki MikroTik | PPTP

Step 1: Login the Mikrotik router using the winbox and please done the necessary configuration like set ip address, dns, nat and dhcp server etc.

Step 2: After login the router, please follow the below screenshot.

Step 3: Edit the profiles for PPTP server.

Step 4: Crate the secrets for PPTP users.

Explanation: First we give a code snippet and then explain what it actually does.

/interface pptp-server server
set authentication=pap,chap,mschap1,mschap2 enabled=yes


/ppp profile
set *0 dns-server=202.84.32.22,202.84.33.23 local-address=192.168.1.1 \
    use-encryption=yes


/ppp secret
add local-address=192.168.1.1 name=1 password=1 remote-address=192.168.1.2 \
    service=pptp

Thank You