Set Up SSTP / PPTP / L2TP VPN on Mikrotik Routers.

In this example, the server IbVPN will be used.

VPN Setup instructions

To start set up VPN on Mikrotik routers you first have to connect to it. For that you have to put in your browser the following address: http://192.168.1.1 (If this doesn’t work, please consult your router’s manual to find what is the Default Gateway Address). Also you have to set your network connection to obtain IP address automatically if you connect to your router via Ethernet.

Create interface L2TP Client

1
2
3
/interface pptp-client
add connect-to=us9.ibvpn.com dial-on-demand=yes max-mru=1400 max-mtu=1400 \
name=IbVPN-PPTPClient password=asdf123 user=email@gmail.com

alt text

Remember to enable the interface.

alt text

Masquerade all outbound traffic.

1
2
3
4

/ip firewall nat
add action=masquerade chain=srcnat comment="Nat IbVPN" disabled=yes \
out-interface=IbVPN-PPTPClient

alt text

Mark routing that will be used by the vpn

1
2
3
4
/ip firewall mangle
add action=mark-routing chain=prerouting comment="IbVPN mark routing" \
disabled=yes new-routing-mark=IbVPN-Routing passthrough=yes src-address=\
192.168.1.0/24

alt text

Create a route for the vpn

1
2
3
/ip route
add disabled=yes distance=1 gateway=IbVPN-PPTPClient routing-mark=\
IbVPN-Routing

alt text

Enable remote requests from dns.

1
2
/ip dns
set allow-remote-requests=yes servers=1.1.1.1,1.0.0.1
© 2020 Juvenal Yescas All Rights Reserved.
Theme by hiero