Configuration of Mikrotik Router to Connect to the PPTP VPN Connection

by Adam Gill

Before the setup of the VPN connection, ensure that the Mikrotik router has been connected to the internet. You should connect your internet gateway to the router, then router to the client computer system. Given below is a guide to instruct you to configure the router with webfig through the following steps.

  • Start by logging in to the router at, click on the ‘PPP’ option given on the left side menu and then choose the ‘PPTP Client’ option from the ‘add new’ drop down menu under the interface tab. You need to fill in a simple form with details of configuration.
  • In the field labeled ‘name’, enter the desired name for the connection and the IP address of the server that you wish to connect to, in the ‘Connect to’ field.
  • Set the value to 1400 for ‘Max MTU+Max MRU’ and enter your VPN log in credentials in the ‘user’ and ‘password’ fields.
  • Enable the ‘dial on demand’ and ‘add default route’ and make sure that all the methods in the ‘allow’ field are checked, while the ‘enabled’ option should be unchecked and then click on the ‘OK’ button.
  • Now, move to the ‘IP’ tab, select ‘NAT’ & ‘Firewall’ and enable the ‘srcnet’ option under ‘chain’.
  • In the ‘out.interface’, you need to select the VPN name created, select ‘masquerade’ in ‘action’ and then click on the ‘OK’ button.
  • Now, move to the ‘mangle’ tab, select the ‘add new’ option and then select the ‘prerouting’ option in ‘chain’ and enter the IP range in the ‘src. address’ option and enable it by checking the checkbox.
  • Select the option ‘mark routing’ in ‘action’ and enter the routing mark’s name in ‘new routing mark’ and then click on ‘OK’ to continue.
  • After this, click on ‘add new’ under ‘routes’ in the ‘IP’ tab and enter the value ‘’ or ‘0’ in the ‘dst. address’ field.
  • Here, enter the VPN connection’s name in the ‘gateway’ field and the routing mark’s name in the ‘routing mark’ field and then click on the ‘OK’ button to continue.
  • Now, move to the ‘DNS’ tab under the ‘IP’ tab and select the ‘settings’ option under ‘static’ and check the option for ‘enabled’.
  • After this, enter the values for the OpenDNS servers into all the fields of the ‘servers’ labeled fields.
  • Check the option named ‘allow remote requests’ and click on ‘OK’ to continue.
  • For automatic setting of the IPs for connecting devices via DHCP, you must modify the settings for DHCP-client of the router, where the DNS settings will be overwritten automatically otherwise.
  • Move to ‘DHCP client’ under the ‘IP’ tab and uncheck the ‘Use Peer DNS’ option, after double-clicking the DHCP entry and then click on the ‘OK’ button.

With this step, the setup for the configuration of the router for PPTP VPN connection is complete.

Privacy Protection

To connect to the connection, move to ‘PPP’ tab, open the VPN connection name, enable the ‘enabled’ option and then click on the ‘apply’ button. You can view the status of the connection that must change from dialing to authenticating and then to connected.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

{ 0 comments… add one now }

Leave a Comment

Previous post:

Next post: