Skip to main content

Mikrotik PPTP Server (CLI)

###########################
# Commands for Mikrotik teminal #
###########################

Configure serverv, one-time task

##
## Configure PPTP Server
##

#
# Create IP pool
#
/ip pool add name=pptp-pool-cska ranges=10.200.10.2-10.200.10.254

#
# Configure PPTP profile
#
/ppp profile add name=pptp-profile-cska local-address=10.200.10.1 remote-address=pptp-pool-cska use-encryption=yes

# local-address — IP-адрес сервера в VPN-сети.
# remote-address — пул адресов для клиентов.
# use-encryption=yes — включает шифрование (обязательно для Windows 10).

#
# Turn ON PPTP Server
#
/interface pptp-server server set enabled=yes default-profile=pptp-profile-cska authentication=mschap2,mschap1

# authentication — методы аутентификации, совместимые с Windows 10.

Adding users, periodic task

#
# Add user(s). Use this command to add new user
#
/ppp secret add name=kandybka password=randompasswordhere service=pptp profile=pptp-profile-cska
/ppp secret add name=zarikhin password=randompasswordhere service=pptp profile=pptp-profile-cska