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

View: 1|Reply: 0

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

[Copy link]
Posted on1 second ago | | | |
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
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