Skip to main content

Setup VPN Client on Mikrotik Router

For some reason, we want to make the proxy as a VPN client and forward the entire connection from the client to the VPN server Mikrotik. The following are the steps to configure Mikrotik as VPN-Client:

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 and  8.8.4.4
20800885818855766694.png

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.
44976454911680081422.png

5.Go to IP -> DHCP Client and disable the "Add Default Route" option.

6.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.
53301433264022781370.png

8.Setup the PPTP client according to the screens bellow. Status should appear as connected once you click Apply.


9.Please check your interfaces and routing table again. The correct configuration should look similar to the screen bellow.
59154910121762456275.png

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.

53301433264022781370.png

That's all folk.


Comments

Popular posts from this blog

Mikrotik Script for DNSDynamic, DDNS and IP-Change Update

I often use this script to automatically update Dynamic IP on Mikrotik. Condition of dial-up done by Mikrotik, so the modem using Bridge mode, and you've been setting up email on the Tool >> email in your Mikrotik. Download here : And for other dynamic DNS providers please download this script: Script for DDNS and IP-Change DNSDynamic here ______________________________________________________________________________ This article is translated version to English from Bahasa Indonesia by Google. Original post was write by cirebonwifi

Mikrotik PPTP Client Setup

Here are step by step to setup PPTP Client on Mikrotik. First, create a new PPTP interface by click PPP menu, then add PPTP Client. Please make sure to enter the following data in the fields: On General Tab : Name: Anything you want, but if creating multiple connections it makes sense to name them like "pptp-out1" Max MTU + Max MRU: Set to 1400 On Dial Out tab : Connect To: IP or Host your VPN / PPTP server User: Your VPN account username Password: Your PPTP password. Check "Dial On Demand" to ensure that the connection is being dialed when needed but disconnected. Check "Add Default Route" to ensure correct traffic routing. Allow: Leave all authentication methods checked, as it should be by default already. Leave the "Enabled" checkbox unchecked, we still have to do some things. Click on "OK". Now please go to " IP " tab and select " Firewall " and " NAT ". In "Chain", sele...

What is An Air Purifier?

Air purifiers; there is a decent possibility that you have known about them previously. In spite of the way that you may have known about air purifiers previously, do you know what they are or what they do? Countless people don't. Air purifiers can extraordinarily profit you and you family, however before the advantages can be felt, you should acquaint yourself with air purifiers, to be specific what they are and what they do. Air purifier, likewise usually alluded to as air cleaner, are electronic gadgets. The objective of these electronic gadgets is to clean the air. This is finished by dispensing with hurtful air contaminants. Air contaminant is another word that is utilized to portray air particles. Regardless of what they are called, they could be unsafe to your wellbeing or to the individuals who visit your home. That is the reason it is prescribed that all homes have an air purifier in them. Truth be told, notwithstanding be prescribed, a few mortgage holders are really ...