This article is a mirror article of machine translation, please click here to jump to the original article.

View: 168|Reply: 1

[Router] MikroTik (11) RouterOS specifies that the CIDR block is accessed using pptp-client

[Copy link]
Posted on 1/4/2026 10:38:29 AM | | | |
Requirements: The customer provides a PPTP Server to access their network, so that they can access their server, how to log in to the customer's PPTP server using the pptp-client of the RouterOS router, and then access the 192.168.81.0/24 network segment to take the pptp-client interface, access other networks or the local default network.

The network topology diagram is as follows:



PPTP connection

GUI operation, ininterfaces -> interface -> add -> PPTP Client, as shown in the figure below:



where dial-on-demand=yes saves resources and avoids maintaining useless connections for long periods of time. That isConnect on demand, connect only when you need it, and disconnect when it's idle

You can also check the interface status through the command, which is as follows:
As shown below:



Static routing

Add a static route to let 192.168.81.0/24 go through the PPTP tunnel, and add a configuration to the IP-> Routers, as shown in the following figure:



Fill in the name of the PPTP interface you just created as the next hop, and the destination address is the CIDR block address.

Firewall NAT rules

If you want the devices under the router to be able to access the remote 192.168.81.0/24 server via PPTP, you also need to add the MASQUERADE settings to the IP -> Firewall -> NAT configuration as follows:



At this point, the configuration through the interface has been completed.

Command-line operations

The operation through the interface is more cumbersome, and it can be quickly configured through the command line, and the command line configuration is as follows:
Reference:The hyperlink login is visible.




Previous:MikroTik (ten) RouterOS uses Torch to analyze real-time traffic
Next:Database soft deletion (tombod) field uniqueness issue
 Landlord| Posted on 1/12/2026 8:49:01 AM |
dial-on-demand=yes
Save resources and avoid maintaining unwanted connections for long periods of time.

dial-on-demand=no Dial now and stay connected without waiting for traffic (recommended for scenarios where a stable connection is required (e.g., site-to-site VPN))
dial-on-demand=yes Dial only when there is data (good for temporary use, but may cause delays or untimely routing)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com