SlideShare a Scribd company logo
1 of 5
Download to read offline
MikroTik VPN Configuration with
Site-to-Site PPTP
VPN (Virtual Private Network) is a technology that provides a secure and encrypted
tunnel across a public network and using this VPN tunnel a private network user can
send and receive data to any remote private network as if his/her network device was
directly connected to that private network.
MikroTik PPTP is a popular client-server VPN service that provides a secure and
encrypted link across public network. MikroTik PPTP can be applied in two methods.
▪ Connecting remote workstation/client: In this method, a PPTP client supported
operating system such as Windows can communicate with MikroTik PPTP server
through PPTP tunnel whenever required and can access remote private network as
if it was directly connected to the remote private network.
▪ Site-to-Site PPTP: This method is also known as VPN between routers. In this
method, a PPTP client supported router always establishes a PPTP tunnel with
MikroTik PPTP Server. So, private networks of these routers can communicate to
each other as if they were directly connected to the same router.
MikroTik PPTP Server configuration for connecting remote workstation has been
explained in my previous article. So, in this article I will only show how to configure
a Site-to-Site PPTP Tunnel between two MikroTik Routers so that private networks of
these routers can communicate to each other through this secure PPTP tunnel.
Network DiagramTo configure a Site-to-Site PPTP Tunnel with MikroTik Router, I am
following a network like below diagram.
In this network, R1 Router is connected to internet through ether1 interface having IP address
192.168.30.2/30. In your real network this IP address should replace with public IP address. R1
Router’s ether2 interface is connected to local network having IP network 10.10.10.0/24. We will
configure PPTP server in this router and after PPTP configuration the router will create a virtual
interface (PPTP Tunnel) across public network whose IP address will be 172.22.22.1. On the
other hand, R2 Router is a remote router and can access R1 Router’s WAN IP. R2 Router’s
ether1 interface is connected to internet having IP address 192.168.40.2/30 and ether2 has a
local IP network 10.10.11.0/24. We will configure PPTP client in this router and after
configuration the router will have a virtual interface (PPTP Tunnel) across public network whose
IP address will be 172.22.22.2.
Site-to-Site PPTP Configuration
in MikroTik Router
Now we will start our Site-to-Site PPTP configuration in MikroTik Router according to
above network diagram. Complete configuration can be divided into two parts.
▪ Part 1: R1 Router Configuration
▪ Part 2: R2 Router Configuration
Part 1: R1 Router Configuration
We will configure PPTP Server in R1 RouterOS. Complete RouterOS configuration can
be divided into three steps.
▪ MikroTik Router basic configuration
▪ Enabling PPTP Server
▪ PPTP user configuration
Step 1: MikroTik Router Basic Configuration
In first step, we will assign WAN, LAN and DNS IP and perform NAT and Route
configuration. The following steps will show how to do these topics in your RouterOS.
▪ Login to R1 RouterOS using winbox and go to IP > Addresses. In Address List window,
click on PLUS SIGN (+). In New Address window, put WAN IP address (192.168.30.2/30)
in Address input field and choose WAN interface (ether1) from Interface dropdown menu
and click on Apply and OK button. Click on PLUS SIGN again and put LAN IP
(10.10.10.1/24) in Address input field and choose LAN interface (ether2) from Interface
dropdown menu and click on Apply and OK button.
▪ Go to IP > DNS and put DNS servers IP (8.8.8.8 or 8.8.4.4) in Servers input field and click
on Apply and OK button.
▪ Go to IP > Firewall and click on NAT tab and then click on PLUS SIGN (+). Under General
tab, choose srcnat from Chain dropdown menu and click on Action tab and then choose
masquerade from Action dropdown menu. Click on Apply and OK button.
▪ Go to IP > Routes and click on PLUS SIGN (+). In New Route window, click on Gateway
input field and put WAN Gateway address (192.168.30.1) in Gateway input field and click
on Apply and OK button.
Basic RouterOS configuration has been completed. Now it is time to enable PPTP server
in our MikroTik Router.
Step 2: Enabling PPTP Server in MikroTik Router
We will now enable PPTP Server in our MikroTik Router. The following steps will show
how to enable PPTP Server in MikroTik RouterOS.
▪ Click on PPP menu item from winbox and then click on Interface tab.
▪ Click on PPTP Server button. PPTP Server window will appear.
▪ Check Enabled checkbox and also check pap and chap checkbox under Authentication
panel.
▪ Click on Apply and OK button.
PPTP Server is now running in our MikroTik Router. The next step is to configure PPTP
user who will be authenticated to connect to PPTP Server for establishing a PPTP
Tunnel.
Step 3: PPTP User Configuration
We will now create PPTP username and password that are required to connect to PPTP
Server. We will also assign local and remote virtual interface IP. We will also add a static
route in routing table to reach the client router’s private network. The following steps
will show how to do these topics in your MikroTik Router.
▪ Click on PPP menu item from winbox and then click on Secrets tab.
▪ Click on PLUS SIGN (+). New PPP Secret window will appear.
▪ Put username (For example: sayeed) in Name input and password in Password input field.
This username and password will be required when PPTP client will be configured.
▪ Put virtual interface IP for R1 Router end (172.22.22.1) in Local Address input field and for
R2 Router end (172.22.22.2) in Remote Address input field.
▪ Put static routes to reach R2 Router’s local network in Routes input filed. This route will be
added in R1 Router’s routing table when PPTP user will be connected from R2 Router. The
route format is: dst-address gateway metric (example for this configuration: 10.10.11.0/ 24
172.22.22.2 1). Several routes may be specified separated with commas.
▪ Click on Apply and OK button.
User configuration for PPTP Server has been completed. Whenever your created user
will be connected from PPTP client router (R2 Router), the Remote Address IP will be
assigned for its virtual interface and the routes will be created in R1 Router’s routing
table so that R1 Router’s local network can reach remote router’s (R2 Router) local
network.
R1 Router configuration has been completed. Now R1 Router is ready to create PPTP
Tunnel for its PPTP user. In the next part, we will configure our R2 Router so that it can
connect to R1 Router through a PPTP Tunnel to reach R1 Router’s local network.
Part 2: R2 Router Configuration
According to our network diagram, R2 Router is working as a PPTP client router. So, we
will configure PPTP client in R2 Router. Complete RouterOS configuration can be
divided into three steps.
▪ Basic RouterOS configuration
▪ PPTP client configuration
▪ Static route configuration
Step 1: Basic RouterOS Configuration
Basic RouterOS configuration includes assigning WAN, LAN and DNS IP as well as NAT
and Route configuration. The following steps will guide you about basic RouterOS
configuration.
▪ Login to R2 RouterOS using winbox and go to IP > Addresses. In Address List window,
click on PLUS SIGN (+). In New Address window, put WAN IP address (192.168.40.2/30)
in Address input field and choose WAN interface (ether1) from Interface dropdown menu
and click on Apply and OK button. Click on PLUS SIGN again and put LAN IP
(10.10.11.1/24) in Address input field and choose LAN interface (ether2) from Interface
dropdown menu and click on Apply and OK button.
▪ Go to IP > DNS and put DNS servers IP (8.8.8.8 or 8.8.4.4) in Servers input field and click
on Apply and OK button.
▪ Go to IP > Firewall and click on NAT tab and then click on PLUS SIGN (+). Under General
tab, choose srcnat from Chain dropdown menu and click on Action tab and then choose
masquerade from Action dropdown menu. Click on Apply and OK button.
▪ Go to IP > Routes and click on PLUS SIGN (+). In New Route window, click on Gateway
input field and put WAN Gateway address (192.168.40.1) in Gateway input field and click
on Apply and OK button.
Basic RouterOS configuration in R2 Router has been completed. Now it is time to create
PPTP client in our MikroTik Router.
Step 2: PPTP Client Configuration
After completing RouterOS basic configuration, we will now configure PPTP client in R2
Router. The following steps will show you how to create PPTP client in your MikroTik
Router.
▪ Click on Interfaces menu item from winbox and then click on Interface tab. Click on PLUS
SIGN (+) dropdown menu and then choose PPTP Client option. New Interface window will
appear.
▪ Click on General tab and put PPTP interface name (pptp-server) in Name input field.
▪ Click on Dial Out tab and put R1 Router’s WAN IP (192.168.30.2) in Connect To input field.
This IP must be reachable from R2 Router.
▪ Put username (sayeed) and password that you have created in R1 Router’s PPTP user
configuration, in User and Password input field respectively.
▪ Click on Apply and OK button.
As soon as you provide the above information, a PPTP Tunnel will be created between
R1 and R2 Router and provided local and remote IP address will be assigned in R1 and
R2 Router’s virtual interface respectively. At this stage, R1 Router as well as its local
network will be able to reach R2 Router and its local network but R2 Router and its local
network will only be able to reach R1 Router but not its local network. To reach R1
Router’s local network, a static route must add in R2 Router’s routing table.
Step 3: Static route configuration
After configuring PPTP Client in R2 Router, R2 Router can only access R1 Router but
not its local network. To solve this issue, a route is required in R2 Router’s routing table.
The following steps will show how to add a route in R2 Router’s routing table statically.
▪ Go to IP > Routes and then click on PLUS SIGN (+).
▪ In New Route window, provide R1 Router’s local network (10.10.10.0/24) where you want
to reach, in Dst. Address input field.
▪ Click on Gateway input field and then choose your PPTP client interface (pptp-server) that
you have create in PPTP client configuration, from Gateway dropdown menu.
▪ Click on Apply and OK button.
Now R2 Router and its local network will be able to access R1 Router’s local network.
R1 Router and R2 Router Configuration for establishing a PPTP Tunnel between them
has been completed. Now both router’s local networks are eligible to access each other.
To check your configuration, do a ping request from any local network machine to other
local network machine. If everything is OK, your ping request will be success.
If you face any confusion to follow above steps properly, watch my below video about
MikroTik PPTP Site-to-Site VPN configuration. I hope, it will reduce your any
confusion.
MikroTik VPN configuration with Site-to-Site PPTP Service has been explained in this
article. I hope you will be able to configure your Site-to-Site VPN with MikroTik PPTP service if
you follow the explanation carefully. However, if you face any confusion to do above steps
properly, feel free to discuss in comment or contact with me from Contact page. I will try my
best to stay with you.

More Related Content

What's hot

Dhcp & dhcp relay agent in cent os 5.3
Dhcp & dhcp relay agent in cent os 5.3Dhcp & dhcp relay agent in cent os 5.3
Dhcp & dhcp relay agent in cent os 5.3Sophan Nhean
 
Final presentation phases1_2_3
Final presentation phases1_2_3Final presentation phases1_2_3
Final presentation phases1_2_3TommyBtown
 
Router configuration in packet tracer
Router configuration in packet  tracerRouter configuration in packet  tracer
Router configuration in packet tracerAnabia Anabia
 
Virtual Local Area Network
Virtual Local Area NetworkVirtual Local Area Network
Virtual Local Area NetworkAtakan ATAK
 
Student packet tracer manual v1.1
Student packet tracer manual v1.1Student packet tracer manual v1.1
Student packet tracer manual v1.1milkux
 
Ccnav5.org ccna 4-v50_practice_final_exam
Ccnav5.org ccna 4-v50_practice_final_examCcnav5.org ccna 4-v50_practice_final_exam
Ccnav5.org ccna 4-v50_practice_final_examĐồng Quốc Vương
 
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAMCMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAMHamesKellor
 
ccna 1 v5.0 itn practice final exam answers
ccna 1 v5.0 itn practice final exam answersccna 1 v5.0 itn practice final exam answers
ccna 1 v5.0 itn practice final exam answersĐồng Quốc Vương
 
Ccna 1 practice final exam answer v5
Ccna 1 practice final exam answer v5Ccna 1 practice final exam answer v5
Ccna 1 practice final exam answer v5friv4schoolgames
 
Ccna 2 rse practice skills assessment
Ccna 2 rse practice skills assessmentCcna 2 rse practice skills assessment
Ccna 2 rse practice skills assessmentfriv4schoolgames
 
Mikrotik link redundancy solution
Mikrotik link redundancy solution Mikrotik link redundancy solution
Mikrotik link redundancy solution S M Tipu
 
Packet tracer practical guide
Packet tracer practical guidePacket tracer practical guide
Packet tracer practical guideNishant Gandhi
 
Stp. cli command reference, quiz
Stp. cli command reference, quizStp. cli command reference, quiz
Stp. cli command reference, quizSagarR24
 
3 ip routing eigrp
3 ip routing eigrp3 ip routing eigrp
3 ip routing eigrpSagarR24
 
Packet Tracer Tutorial # 2
Packet Tracer Tutorial # 2Packet Tracer Tutorial # 2
Packet Tracer Tutorial # 2Abdul Basit
 

What's hot (20)

Dhcp & dhcp relay agent in cent os 5.3
Dhcp & dhcp relay agent in cent os 5.3Dhcp & dhcp relay agent in cent os 5.3
Dhcp & dhcp relay agent in cent os 5.3
 
Final presentation phases1_2_3
Final presentation phases1_2_3Final presentation phases1_2_3
Final presentation phases1_2_3
 
4d routing
4d routing4d routing
4d routing
 
Router configuration in packet tracer
Router configuration in packet  tracerRouter configuration in packet  tracer
Router configuration in packet tracer
 
Virtual Local Area Network
Virtual Local Area NetworkVirtual Local Area Network
Virtual Local Area Network
 
Student packet tracer manual v1.1
Student packet tracer manual v1.1Student packet tracer manual v1.1
Student packet tracer manual v1.1
 
Xb30330.xb30350 management guide
Xb30330.xb30350 management guideXb30330.xb30350 management guide
Xb30330.xb30350 management guide
 
Ccnav5.org ccna 4-v50_practice_final_exam
Ccnav5.org ccna 4-v50_practice_final_examCcnav5.org ccna 4-v50_practice_final_exam
Ccnav5.org ccna 4-v50_practice_final_exam
 
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAMCMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
CMIT 350 FINAL EXAM CCNA CERTIFICATION PRACTICE EXAM
 
Networking basics
Networking basicsNetworking basics
Networking basics
 
ccna 1 v5.0 itn practice final exam answers
ccna 1 v5.0 itn practice final exam answersccna 1 v5.0 itn practice final exam answers
ccna 1 v5.0 itn practice final exam answers
 
Ccnp3 lab 3_4_en
Ccnp3 lab 3_4_enCcnp3 lab 3_4_en
Ccnp3 lab 3_4_en
 
Ccna 1 practice final exam answer v5
Ccna 1 practice final exam answer v5Ccna 1 practice final exam answer v5
Ccna 1 practice final exam answer v5
 
Ccna 2 rse practice skills assessment
Ccna 2 rse practice skills assessmentCcna 2 rse practice skills assessment
Ccna 2 rse practice skills assessment
 
Mikrotik link redundancy solution
Mikrotik link redundancy solution Mikrotik link redundancy solution
Mikrotik link redundancy solution
 
Multicast IP addresses Part 1
Multicast IP addresses Part 1Multicast IP addresses Part 1
Multicast IP addresses Part 1
 
Packet tracer practical guide
Packet tracer practical guidePacket tracer practical guide
Packet tracer practical guide
 
Stp. cli command reference, quiz
Stp. cli command reference, quizStp. cli command reference, quiz
Stp. cli command reference, quiz
 
3 ip routing eigrp
3 ip routing eigrp3 ip routing eigrp
3 ip routing eigrp
 
Packet Tracer Tutorial # 2
Packet Tracer Tutorial # 2Packet Tracer Tutorial # 2
Packet Tracer Tutorial # 2
 

Similar to Mikro tik vpn configuration with site converted

Lesson.7: Configuring IP Routing A
Lesson.7: Configuring IP Routing ALesson.7: Configuring IP Routing A
Lesson.7: Configuring IP Routing AMahmmoud Mahdi
 
Load Sharing Internet with MikroTik.pdf
Load Sharing Internet with MikroTik.pdfLoad Sharing Internet with MikroTik.pdf
Load Sharing Internet with MikroTik.pdfEnics
 
Cpu224 xp eth-ethernet_interface
Cpu224 xp eth-ethernet_interfaceCpu224 xp eth-ethernet_interface
Cpu224 xp eth-ethernet_interfacearco zhang
 
Lesson.7: Configuring IP Routing B
Lesson.7: Configuring IP Routing BLesson.7: Configuring IP Routing B
Lesson.7: Configuring IP Routing BMahmmoud Mahdi
 
119163798 icnd1-practice-questions-9tut
119163798 icnd1-practice-questions-9tut119163798 icnd1-practice-questions-9tut
119163798 icnd1-practice-questions-9tutnicolelemmimg
 
Configuring the Device as a PPPoE Client on Huawei AR1200
Configuring the Device as a PPPoE Client on Huawei AR1200Configuring the Device as a PPPoE Client on Huawei AR1200
Configuring the Device as a PPPoE Client on Huawei AR1200Huanetwork
 
versa router teletronics
versa router teletronicsversa router teletronics
versa router teletronicsguestd33e17a
 
How to configure a router
How to configure a router How to configure a router
How to configure a router IT Tech
 
Labpractice1 configuringbasicroutingandswitchingwithanswer-121214084802-phpapp02
Labpractice1 configuringbasicroutingandswitchingwithanswer-121214084802-phpapp02Labpractice1 configuringbasicroutingandswitchingwithanswer-121214084802-phpapp02
Labpractice1 configuringbasicroutingandswitchingwithanswer-121214084802-phpapp02Abhilash Kuniyil
 
MikroTik Basic Training Class - Online Moduls - English
 MikroTik Basic Training Class - Online Moduls - English MikroTik Basic Training Class - Online Moduls - English
MikroTik Basic Training Class - Online Moduls - EnglishAdhie Lesmana
 
Configuring Dhcp Server, Scopes & Superscopes
Configuring Dhcp Server, Scopes & SuperscopesConfiguring Dhcp Server, Scopes & Superscopes
Configuring Dhcp Server, Scopes & Superscopesjocelyn_tanner
 
Intro to router_config
Intro to router_configIntro to router_config
Intro to router_configarjuntrk
 
Dcn Networking Between Server And Client Machine
Dcn Networking Between Server And Client MachineDcn Networking Between Server And Client Machine
Dcn Networking Between Server And Client MachineRohan Bhatkar
 
ACN Micro- Project Group no. 22.pptx
ACN Micro- Project Group no. 22.pptxACN Micro- Project Group no. 22.pptx
ACN Micro- Project Group no. 22.pptxMohdHasnainRaza1
 
Ccna 2 chapter 2 v4.0 answers 2011
Ccna 2 chapter 2 v4.0 answers 2011Ccna 2 chapter 2 v4.0 answers 2011
Ccna 2 chapter 2 v4.0 answers 2011Dân Chơi
 
Ccna1 v6.0 pretest exam answers 2018
Ccna1 v6.0 pretest exam answers 2018Ccna1 v6.0 pretest exam answers 2018
Ccna1 v6.0 pretest exam answers 2018Download Mipdfcom
 
Wireless lab4902
Wireless lab4902Wireless lab4902
Wireless lab4902mark scott
 
Telnet configuration
Telnet configurationTelnet configuration
Telnet configurationMdAlAmin187
 

Similar to Mikro tik vpn configuration with site converted (20)

Lesson.7: Configuring IP Routing A
Lesson.7: Configuring IP Routing ALesson.7: Configuring IP Routing A
Lesson.7: Configuring IP Routing A
 
Load Sharing Internet with MikroTik.pdf
Load Sharing Internet with MikroTik.pdfLoad Sharing Internet with MikroTik.pdf
Load Sharing Internet with MikroTik.pdf
 
Cpu224 xp eth-ethernet_interface
Cpu224 xp eth-ethernet_interfaceCpu224 xp eth-ethernet_interface
Cpu224 xp eth-ethernet_interface
 
Lesson.7: Configuring IP Routing B
Lesson.7: Configuring IP Routing BLesson.7: Configuring IP Routing B
Lesson.7: Configuring IP Routing B
 
119163798 icnd1-practice-questions-9tut
119163798 icnd1-practice-questions-9tut119163798 icnd1-practice-questions-9tut
119163798 icnd1-practice-questions-9tut
 
Configuring the Device as a PPPoE Client on Huawei AR1200
Configuring the Device as a PPPoE Client on Huawei AR1200Configuring the Device as a PPPoE Client on Huawei AR1200
Configuring the Device as a PPPoE Client on Huawei AR1200
 
Mikrotik pcq
Mikrotik   pcqMikrotik   pcq
Mikrotik pcq
 
versa router teletronics
versa router teletronicsversa router teletronics
versa router teletronics
 
How to configure a router
How to configure a router How to configure a router
How to configure a router
 
Labpractice1 configuringbasicroutingandswitchingwithanswer-121214084802-phpapp02
Labpractice1 configuringbasicroutingandswitchingwithanswer-121214084802-phpapp02Labpractice1 configuringbasicroutingandswitchingwithanswer-121214084802-phpapp02
Labpractice1 configuringbasicroutingandswitchingwithanswer-121214084802-phpapp02
 
MikroTik Basic Training Class - Online Moduls - English
 MikroTik Basic Training Class - Online Moduls - English MikroTik Basic Training Class - Online Moduls - English
MikroTik Basic Training Class - Online Moduls - English
 
Configuring Dhcp Server, Scopes & Superscopes
Configuring Dhcp Server, Scopes & SuperscopesConfiguring Dhcp Server, Scopes & Superscopes
Configuring Dhcp Server, Scopes & Superscopes
 
Intro to router_config
Intro to router_configIntro to router_config
Intro to router_config
 
Dcn Networking Between Server And Client Machine
Dcn Networking Between Server And Client MachineDcn Networking Between Server And Client Machine
Dcn Networking Between Server And Client Machine
 
ivesgimpaya3
ivesgimpaya3ivesgimpaya3
ivesgimpaya3
 
ACN Micro- Project Group no. 22.pptx
ACN Micro- Project Group no. 22.pptxACN Micro- Project Group no. 22.pptx
ACN Micro- Project Group no. 22.pptx
 
Ccna 2 chapter 2 v4.0 answers 2011
Ccna 2 chapter 2 v4.0 answers 2011Ccna 2 chapter 2 v4.0 answers 2011
Ccna 2 chapter 2 v4.0 answers 2011
 
Ccna1 v6.0 pretest exam answers 2018
Ccna1 v6.0 pretest exam answers 2018Ccna1 v6.0 pretest exam answers 2018
Ccna1 v6.0 pretest exam answers 2018
 
Wireless lab4902
Wireless lab4902Wireless lab4902
Wireless lab4902
 
Telnet configuration
Telnet configurationTelnet configuration
Telnet configuration
 

Recently uploaded

定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一3sw2qly1
 
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Lucknow
 
Complet Documnetation for Smart Assistant Application for Disabled Person
Complet Documnetation   for Smart Assistant Application for Disabled PersonComplet Documnetation   for Smart Assistant Application for Disabled Person
Complet Documnetation for Smart Assistant Application for Disabled Personfurqan222004
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMartaLoveguard
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)Christopher H Felton
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Roomishabajaj13
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Paul Calvano
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Sonam Pathan
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITMgdsc13
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 

Recently uploaded (20)

定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
 
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
 
Complet Documnetation for Smart Assistant Application for Disabled Person
Complet Documnetation   for Smart Assistant Application for Disabled PersonComplet Documnetation   for Smart Assistant Application for Disabled Person
Complet Documnetation for Smart Assistant Application for Disabled Person
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptx
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 

Mikro tik vpn configuration with site converted

  • 1. MikroTik VPN Configuration with Site-to-Site PPTP VPN (Virtual Private Network) is a technology that provides a secure and encrypted tunnel across a public network and using this VPN tunnel a private network user can send and receive data to any remote private network as if his/her network device was directly connected to that private network. MikroTik PPTP is a popular client-server VPN service that provides a secure and encrypted link across public network. MikroTik PPTP can be applied in two methods. ▪ Connecting remote workstation/client: In this method, a PPTP client supported operating system such as Windows can communicate with MikroTik PPTP server through PPTP tunnel whenever required and can access remote private network as if it was directly connected to the remote private network. ▪ Site-to-Site PPTP: This method is also known as VPN between routers. In this method, a PPTP client supported router always establishes a PPTP tunnel with MikroTik PPTP Server. So, private networks of these routers can communicate to each other as if they were directly connected to the same router. MikroTik PPTP Server configuration for connecting remote workstation has been explained in my previous article. So, in this article I will only show how to configure a Site-to-Site PPTP Tunnel between two MikroTik Routers so that private networks of these routers can communicate to each other through this secure PPTP tunnel. Network DiagramTo configure a Site-to-Site PPTP Tunnel with MikroTik Router, I am following a network like below diagram.
  • 2. In this network, R1 Router is connected to internet through ether1 interface having IP address 192.168.30.2/30. In your real network this IP address should replace with public IP address. R1 Router’s ether2 interface is connected to local network having IP network 10.10.10.0/24. We will configure PPTP server in this router and after PPTP configuration the router will create a virtual interface (PPTP Tunnel) across public network whose IP address will be 172.22.22.1. On the other hand, R2 Router is a remote router and can access R1 Router’s WAN IP. R2 Router’s ether1 interface is connected to internet having IP address 192.168.40.2/30 and ether2 has a local IP network 10.10.11.0/24. We will configure PPTP client in this router and after configuration the router will have a virtual interface (PPTP Tunnel) across public network whose IP address will be 172.22.22.2. Site-to-Site PPTP Configuration in MikroTik Router Now we will start our Site-to-Site PPTP configuration in MikroTik Router according to above network diagram. Complete configuration can be divided into two parts. ▪ Part 1: R1 Router Configuration ▪ Part 2: R2 Router Configuration Part 1: R1 Router Configuration We will configure PPTP Server in R1 RouterOS. Complete RouterOS configuration can be divided into three steps. ▪ MikroTik Router basic configuration ▪ Enabling PPTP Server ▪ PPTP user configuration Step 1: MikroTik Router Basic Configuration In first step, we will assign WAN, LAN and DNS IP and perform NAT and Route configuration. The following steps will show how to do these topics in your RouterOS. ▪ Login to R1 RouterOS using winbox and go to IP > Addresses. In Address List window, click on PLUS SIGN (+). In New Address window, put WAN IP address (192.168.30.2/30) in Address input field and choose WAN interface (ether1) from Interface dropdown menu and click on Apply and OK button. Click on PLUS SIGN again and put LAN IP (10.10.10.1/24) in Address input field and choose LAN interface (ether2) from Interface dropdown menu and click on Apply and OK button. ▪ Go to IP > DNS and put DNS servers IP (8.8.8.8 or 8.8.4.4) in Servers input field and click on Apply and OK button. ▪ Go to IP > Firewall and click on NAT tab and then click on PLUS SIGN (+). Under General tab, choose srcnat from Chain dropdown menu and click on Action tab and then choose masquerade from Action dropdown menu. Click on Apply and OK button.
  • 3. ▪ Go to IP > Routes and click on PLUS SIGN (+). In New Route window, click on Gateway input field and put WAN Gateway address (192.168.30.1) in Gateway input field and click on Apply and OK button. Basic RouterOS configuration has been completed. Now it is time to enable PPTP server in our MikroTik Router. Step 2: Enabling PPTP Server in MikroTik Router We will now enable PPTP Server in our MikroTik Router. The following steps will show how to enable PPTP Server in MikroTik RouterOS. ▪ Click on PPP menu item from winbox and then click on Interface tab. ▪ Click on PPTP Server button. PPTP Server window will appear. ▪ Check Enabled checkbox and also check pap and chap checkbox under Authentication panel. ▪ Click on Apply and OK button. PPTP Server is now running in our MikroTik Router. The next step is to configure PPTP user who will be authenticated to connect to PPTP Server for establishing a PPTP Tunnel. Step 3: PPTP User Configuration We will now create PPTP username and password that are required to connect to PPTP Server. We will also assign local and remote virtual interface IP. We will also add a static route in routing table to reach the client router’s private network. The following steps will show how to do these topics in your MikroTik Router. ▪ Click on PPP menu item from winbox and then click on Secrets tab. ▪ Click on PLUS SIGN (+). New PPP Secret window will appear. ▪ Put username (For example: sayeed) in Name input and password in Password input field. This username and password will be required when PPTP client will be configured. ▪ Put virtual interface IP for R1 Router end (172.22.22.1) in Local Address input field and for R2 Router end (172.22.22.2) in Remote Address input field. ▪ Put static routes to reach R2 Router’s local network in Routes input filed. This route will be added in R1 Router’s routing table when PPTP user will be connected from R2 Router. The route format is: dst-address gateway metric (example for this configuration: 10.10.11.0/ 24 172.22.22.2 1). Several routes may be specified separated with commas. ▪ Click on Apply and OK button. User configuration for PPTP Server has been completed. Whenever your created user will be connected from PPTP client router (R2 Router), the Remote Address IP will be assigned for its virtual interface and the routes will be created in R1 Router’s routing table so that R1 Router’s local network can reach remote router’s (R2 Router) local network. R1 Router configuration has been completed. Now R1 Router is ready to create PPTP Tunnel for its PPTP user. In the next part, we will configure our R2 Router so that it can connect to R1 Router through a PPTP Tunnel to reach R1 Router’s local network.
  • 4. Part 2: R2 Router Configuration According to our network diagram, R2 Router is working as a PPTP client router. So, we will configure PPTP client in R2 Router. Complete RouterOS configuration can be divided into three steps. ▪ Basic RouterOS configuration ▪ PPTP client configuration ▪ Static route configuration Step 1: Basic RouterOS Configuration Basic RouterOS configuration includes assigning WAN, LAN and DNS IP as well as NAT and Route configuration. The following steps will guide you about basic RouterOS configuration. ▪ Login to R2 RouterOS using winbox and go to IP > Addresses. In Address List window, click on PLUS SIGN (+). In New Address window, put WAN IP address (192.168.40.2/30) in Address input field and choose WAN interface (ether1) from Interface dropdown menu and click on Apply and OK button. Click on PLUS SIGN again and put LAN IP (10.10.11.1/24) in Address input field and choose LAN interface (ether2) from Interface dropdown menu and click on Apply and OK button. ▪ Go to IP > DNS and put DNS servers IP (8.8.8.8 or 8.8.4.4) in Servers input field and click on Apply and OK button. ▪ Go to IP > Firewall and click on NAT tab and then click on PLUS SIGN (+). Under General tab, choose srcnat from Chain dropdown menu and click on Action tab and then choose masquerade from Action dropdown menu. Click on Apply and OK button. ▪ Go to IP > Routes and click on PLUS SIGN (+). In New Route window, click on Gateway input field and put WAN Gateway address (192.168.40.1) in Gateway input field and click on Apply and OK button. Basic RouterOS configuration in R2 Router has been completed. Now it is time to create PPTP client in our MikroTik Router. Step 2: PPTP Client Configuration After completing RouterOS basic configuration, we will now configure PPTP client in R2 Router. The following steps will show you how to create PPTP client in your MikroTik Router. ▪ Click on Interfaces menu item from winbox and then click on Interface tab. Click on PLUS SIGN (+) dropdown menu and then choose PPTP Client option. New Interface window will appear. ▪ Click on General tab and put PPTP interface name (pptp-server) in Name input field. ▪ Click on Dial Out tab and put R1 Router’s WAN IP (192.168.30.2) in Connect To input field. This IP must be reachable from R2 Router. ▪ Put username (sayeed) and password that you have created in R1 Router’s PPTP user configuration, in User and Password input field respectively. ▪ Click on Apply and OK button.
  • 5. As soon as you provide the above information, a PPTP Tunnel will be created between R1 and R2 Router and provided local and remote IP address will be assigned in R1 and R2 Router’s virtual interface respectively. At this stage, R1 Router as well as its local network will be able to reach R2 Router and its local network but R2 Router and its local network will only be able to reach R1 Router but not its local network. To reach R1 Router’s local network, a static route must add in R2 Router’s routing table. Step 3: Static route configuration After configuring PPTP Client in R2 Router, R2 Router can only access R1 Router but not its local network. To solve this issue, a route is required in R2 Router’s routing table. The following steps will show how to add a route in R2 Router’s routing table statically. ▪ Go to IP > Routes and then click on PLUS SIGN (+). ▪ In New Route window, provide R1 Router’s local network (10.10.10.0/24) where you want to reach, in Dst. Address input field. ▪ Click on Gateway input field and then choose your PPTP client interface (pptp-server) that you have create in PPTP client configuration, from Gateway dropdown menu. ▪ Click on Apply and OK button. Now R2 Router and its local network will be able to access R1 Router’s local network. R1 Router and R2 Router Configuration for establishing a PPTP Tunnel between them has been completed. Now both router’s local networks are eligible to access each other. To check your configuration, do a ping request from any local network machine to other local network machine. If everything is OK, your ping request will be success. If you face any confusion to follow above steps properly, watch my below video about MikroTik PPTP Site-to-Site VPN configuration. I hope, it will reduce your any confusion. MikroTik VPN configuration with Site-to-Site PPTP Service has been explained in this article. I hope you will be able to configure your Site-to-Site VPN with MikroTik PPTP service if you follow the explanation carefully. However, if you face any confusion to do above steps properly, feel free to discuss in comment or contact with me from Contact page. I will try my best to stay with you.