How to set up VPNing on router: Mikrotik RouterOS - Technology Portal

Breaking

Post Top Ad

Post Top Ad

1/24/2013

How to set up VPNing on router: Mikrotik RouterOS

IMPORTANT: Don't setup your Mikrotik RouterOS remotely. You have to be connected via the LAN interface, otherwise you will cut the connection (access to the router) and you will not be able to access it remotely any more.
1.Update Router OS on your Mikrotik router to latest version (at least version v5.8)
2.Connect to your Mikrotik router via WinBox.
3.Setup the DNS servers manually to Google DNS: IP -> DNS -> Settings -> Servers
8.8.8.8
8.8.4.4
Setup the DNS servers manually to Google DNS
4.Write down the default gateway IP address of your Internet provider (ISP) and remove the default-route (Dst. Address = 0.0.0.0/0 routed via your ISP GW) from the routing table. If you don't use DHCP Client please follow the STEP 5.
Write down the default gateway IP address of your Internet provider (ISP) and remove the default-rou
5.Go to IP -> DHCP Client and disable the "Add Default Route" option.
DHCP Client and disable the Add Default Route option
6.Your routing table should not contain any default route now. See the screen bellow.
Your routing table should not contain any default route now. See the screen bellow
7.Add new static route to your routing table. Dst. address is an IP address of the VPN server you want connect to. Gateway is the default gateway IP address of your Internet provider (ISP). You should have the IP written down since STEP 1.
Add new static route to your routing table. Dst. address is an IP address of the VPN server you want
8.Setup the PPTP client according to the screens bellow. Status should appear as connected once you click Apply.
Setup the PPTP client according to the screens bellow
9.Please check your interfaces and routing table again. The correct configuration should look similar to the screen bellow.
Please check your interfaces and routing table again
10.Now you should be able to ping for example google.com. If all works well, then you can setup NAT masquerade of your LAN network so all devices behind the Mikrotik Router will use the VPN connection.
Now you should be able to ping for example google.com

No comments:

Post a Comment

Post Top Ad