How To Configure Mikrotik Vpn Alongside Site-To-Site Pptp



VPN (Virtual Private Network) is a technology scientific discipline that provides a secure in addition to encrypted tunnel across a world network in addition to using this VPN tunnel a mortal network user tin post in addition to have information to whatever remote mortal network equally if his/her network device was straight connected to that mortal network.

MikroTik PPTP is a pop client-server VPN service that provides a secure in addition to encrypted link across world network. MikroTik PPTP tin last applied inwards 2 methods.

Connecting remote workstation/client: In this method, a PPTP customer supported operating organisation such equally Windows tin communicate amongst MikroTik PPTP server through PPTP tunnel whenever required in addition to tin access remote mortal network equally if it was straight connected to the remote mortal network.
Site-to-Site PPTP: This method is too known equally VPN betwixt routers. In this method, a PPTP customer supported router ever establishes a PPTP tunnel amongst MikroTik PPTP Server. So, mortal networks of these routers tin communicate to each other equally if they were straight connected to the same router.

MikroTik PPTP Server configuration for connecting remote workstation has been explained inwards my previous article. So, inwards this article I volition solely exhibit how to configure a Site-to-Site PPTP Tunnel betwixt 2 MikroTik Routers therefore that mortal networks of these routers tin communicate to each other through this secure PPTP tunnel.
In the network digrame above, R1 Router is connected to meshwork through ether1 interface having IP address 192.168.30.2/30. In your existent network this IP address should supercede amongst world IP address. R1 Router’s ether2 interface is connected to local network having IP network 10.10.10.0/24. We volition configure PPTP server inwards this router in addition to later on PPTP configuration the router volition exercise a virtual interface (PPTP Tunnel) across world network whose IP address volition last 172.22.22.1. On the other hand, R2 Router is a remote router in addition to tin access R1 Router’s WAN IP. R2 Router’s ether1 interface is connected to meshwork having IP address 192.168.40.2/30 in addition to ether2 has a local IP network 10.10.11.0/24. We volition configure PPTP customer inwards this router in addition to later on configuration the router volition convey a virtual interface (PPTP Tunnel) across world network whose IP address volition last 172.22.22.2.


Site-to-Site PPTP Configuration inwards MikroTik Router

Now nosotros volition start our Site-to-Site PPTP configuration inwards MikroTik Router according to inwards a higher house network diagram. Complete configuration tin last divided into 2 parts.
Part 1: R1 Router Configuration
Part 2: R2 Router Configuration
Part 1: R1 Router Configuration

We volition configure PPTP Server inwards R1 RouterOS. Complete RouterOS configuration tin last divided into iii steps.
MikroTik Router basic configuration
Enabling PPTP Server
PPTP user configuration
Step 1: MikroTik Router Basic Configuration

In root step, nosotros volition assign WAN, LAN in addition to DNS IP in addition to perform NAT in addition to Route configuration. The next steps volition exhibit how to exercise these topics inwards your RouterOS.

Login to R1 RouterOS using winbox in addition to become to IP > Addresses. In Address List window, click on PLUS SIGN (+). In New Address window, seat WAN IP address (192.168.30.2/30) inwards Address input patch in addition to direct WAN interface (ether1) from Interface dropdown carte du jour in addition to click on Apply in addition to OK button. Click on PLUS SIGN over again in addition to seat LAN IP (10.10.10.1/24) inwards Address input patch in addition to direct LAN interface (ether2) from Interface dropdown carte du jour in addition to click on Apply in addition to OK button.
Go to IP > DNS in addition to seat DNS servers IP (8.8.8.8 or 8.8.4.4) inwards Servers input patch in addition to click on Apply in addition to OK button.
Go to IP > Firewall in addition to click on NAT tab in addition to therefore click on PLUS SIGN (+). Under General tab, direct srcnat from Chain dropdown carte du jour in addition to click on Action tab in addition to therefore direct masquerade from Action dropdown menu. Click on Apply in addition to OK button.
Go to IP > Routes in addition to click on PLUS SIGN (+). In New Route window, click on Gateway input patch in addition to seat WAN Gateway address (192.168.30.1) inwards Gateway input patch in addition to click on Apply in addition to OK button.

Basic RouterOS configuration has been completed. Now it is fourth dimension to enable PPTP server inwards our MikroTik Router.
Step 2: Enabling PPTP Server inwards MikroTik Router

We volition straight off enable PPTP Server inwards our MikroTik Router. The next steps volition exhibit how to enable PPTP Server inwards MikroTik RouterOS.
Click on PPP carte du jour special from winbox in addition to therefore click on Interface tab.
Click on PPTP Server button. PPTP Server window volition appear.
Check Enabled checkbox in addition to too banking concern fit pap in addition to chap checkbox nether Authentication panel.
Click on Apply in addition to OK button.

PPTP Server is straight off running inwards our MikroTik Router. The adjacent stride is to configure PPTP user who volition last authenticated to connect to PPTP Server for establishing a PPTP Tunnel.
Step 3: PPTP User Configuration

We volition straight off exercise PPTP username in addition to password that are required to connect to PPTP Server. We volition too assign local in addition to remote virtual interface IP. We volition too add together a static road inwards routing tabular array to accomplish the customer router’s mortal network. The next steps volition exhibit how to exercise these topics inwards your MikroTik Router.
Click on PPP carte du jour special from winbox in addition to therefore click on Secrets tab.
Click on PLUS SIGN (+). New PPP Secret window volition appear.
Put username (For example: sayeed) inwards Name input in addition to password inwards Password input field. This username in addition to password volition last required when PPTP customer volition last configured.
Put virtual interface IP for R1 Router destination (172.22.22.1) inwards Local Address input patch in addition to for R2 Router destination (172.22.22.2) inwards Remote Address input field.
Put static routes to accomplish R2 Router’s local network inwards Routes input filed. This road volition last added inwards R1 Router’s routing tabular array when PPTP user volition last connected from R2 Router. The road format is: dst-address gateway metric (example for this configuration: 10.10.11.0/ 24 172.22.22.2 1). Several routes may last specified separated amongst commas.
Click on Apply in addition to OK button.

User configuration for PPTP Server has been completed. Whenever your created user volition last connected from PPTP customer router (R2 Router), the Remote Address IP volition last assigned for its virtual interface in addition to the routes volition last created inwards R1 Router’s routing tabular array therefore that R1 Router’s local network tin accomplish remote router’s (R2 Router) local network.

R1 Router configuration has been completed. Now R1 Router is cook to exercise PPTP Tunnel for its PPTP user. In the adjacent part, nosotros volition configure our R2 Router therefore that it tin connect to R1 Router through a PPTP Tunnel to accomplish R1 Router’s local network.
Part 2: R2 Router Configuration

According to our network diagram, R2 Router is working equally a PPTP customer router. So, nosotros volition configure PPTP customer inwards R2 Router. Complete RouterOS configuration tin last divided into iii steps.
Basic RouterOS configuration
PPTP customer configuration
Static road configuration
Step 1: Basic RouterOS Configuration

Basic RouterOS configuration includes assigning WAN, LAN in addition to DNS IP equally good equally NAT in addition to Route configuration. The next steps volition guide you lot almost basic RouterOS configuration.
Login to R2 RouterOS using winbox in addition to become to IP > Addresses. In Address List window, click on PLUS SIGN (+). In New Address window, seat WAN IP address (192.168.40.2/30) inwards Address input patch in addition to direct WAN interface (ether1) from Interface dropdown carte du jour in addition to click on Apply in addition to OK button. Click on PLUS SIGN over again in addition to seat LAN IP (10.10.11.1/24) inwards Address input patch in addition to direct LAN interface (ether2) from Interface dropdown carte du jour in addition to click on Apply in addition to OK button.
Go to IP > DNS in addition to seat DNS servers IP (8.8.8.8 or 8.8.4.4) inwards Servers input patch in addition to click on Apply in addition to OK button.
Go to IP > Firewall in addition to click on NAT tab in addition to therefore click on PLUS SIGN (+). Under General tab, direct srcnat from Chain dropdown carte du jour in addition to click on Action tab in addition to therefore direct masquerade from Action dropdown menu. Click on Apply in addition to OK button.
Go to IP > Routes in addition to click on PLUS SIGN (+). In New Route window, click on Gateway input patch in addition to seat WAN Gateway address (192.168.40.1) inwards Gateway input patch in addition to click on Apply in addition to OK button.

Basic RouterOS configuration inwards R2 Router has been completed. Now it is fourth dimension to exercise PPTP customer inwards our MikroTik Router.
Step 2: PPTP Client Configuration

After completing RouterOS basic configuration, nosotros volition straight off configure PPTP customer inwards R2 Router. The next steps volition exhibit you lot how to exercise PPTP customer inwards your MikroTik Router.
Click on Interfaces carte du jour special from winbox in addition to therefore click on Interface tab. Click on PLUS SIGN (+) drib downward carte du jour in addition to therefore direct PPTP Client option. New Interface window volition appear.
Click on General tab in addition to seat PPTP interface advert (pptp-server) inwards Name input field.
Click on Dial Out tab in addition to seat R1 Router’s WAN IP (192.168.30.2) inwards Connect To input field. This IP must last reachable from R2 Router.
Put username (sayeed) in addition to password that you lot convey created inwards R1 Router’s PPTP user configuration, inwards User in addition to Password input patch respectively.
Click on Apply in addition to OK button.

As before long equally you lot furnish the inwards a higher house information, a PPTP Tunnel volition last created betwixt R1 in addition to R2 Router in addition to provided local in addition to remote IP address volition last assigned inwards R1 in addition to R2 Router’s virtual interface respectively. At this stage, R1 Router equally good equally its local network volition last able to accomplish R2 Router in addition to its local network simply R2 Router in addition to its local network volition solely last able to accomplish R1 Router simply non its local network. To accomplish R1 Router’s local network, a static road must add together inwards R2 Router’s routing table.
Step 3: Static road configuration

After configuring PPTP Client inwards R2 Router, R2 Router tin solely access R1 Router simply non its local network. To solve this issue, a road is required inwards R2 Router’s routing table. The next steps volition exhibit how to add together a road inwards R2 Router’s routing tabular array statically.
Go to IP > Routes in addition to therefore click on PLUS SIGN (+).
In New Route window, furnish R1 Router’s local network (10.10.10.0/24) where you lot desire to reach, inwards Dst. Address input field.
Click on Gateway input patch in addition to therefore direct your PPTP customer interface (pptp-server) that you lot convey exercise inwards PPTP customer configuration, from Gateway dropdown menu.
Click on Apply in addition to OK button.

Now R2 Router in addition to its local network volition last able to access R1 Router’s local network.

R1 Router in addition to R2 Router Configuration for establishing a PPTP Tunnel betwixt them has been completed. Now both router’s local networks are eligible to access each other. To banking concern fit your configuration, exercise a ping asking from whatever local network automobile to other local network machine. If everything is OK, your ping asking volition last success.

Berlangganan update artikel terbaru via email:

0 Response to "How To Configure Mikrotik Vpn Alongside Site-To-Site Pptp"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel