Advance

How to Configure SSTP on Mikrotik

How to Configure SSTP on Mikrotik
0
(0)

SSTP is a proprietary protocol that allows remote users to establish secure connections to the router’s network. It is available on various operating systems. This article will teach you How to Configure SSTP on Mikrotik. If you intend to buy a MikroTik VPS server, you can check out the packages offered on the Eldernode website.

Tutorial Setup SSTP on Mikrotik

SSTP stands for Secure Socket Tunneling Protocol and is a VPN protocol that provides a secure and encrypted tunnel for remote access to network resources. This protocol uses the HTTPS (HTTP over SSL/TLS) protocol to encapsulate VPN traffic, providing a secure and authenticated channel for data transmission. When SSTP is set up on a MikroTik router, it enables remote users to securely connect to the router and access resources on the local network.

Recommended Article: How to Configure IP settings in MikroTik

Create TLS Certificate for SSTP Server

SSTP VPN uses a TLS certificate for secure communication and you need a TLS certificate to configure the SSTP server. MikroTik RouterOS v6 allows you to create, store and manage certificates in the certificate store. So, create the required SSTP server certificate from MikroTik RouterOS. The SSTP server requires two types of certificates, which are the CA certificate (Certificate Authority) and the Server Certificate.

Firstly, open your Winbox and log in to your MikroTik server. Navigate to the System >> Certificates and open a new Certificate window by clicking +:

 

Open-new-certificate-window

 

Now fill in the required information. Next, go to the Key Usage tab and uncheck all checkboxes except the digital signature, key encipherment and tls server checkboxes. Then press Apply >> Sign to open Sign Window:

 

Key-Usage-tab-on-Certificates

 

You can see the newly created Server certificate template in the certificate dropdown menu. Now choose the newly created certificate template if it is not selected and also choose CA certificate from the CA dropdown menu. Then press Sign >> OK.

Note: If the newly created server certificate does not show the T flag or the Trusted property indicates No, double-click your server certificate and click the Trusted box located at the bottom of the General tab, and then click the Apply and OK button:

 

newly-created-Server-certificate

 

Configure SSTP Server Configuration on Mikrotik

Navigate to the PPP >> Interface >> SSTP Server:

 

SSTP-server-section-from-interface-tab

 

And in this field, do the following configuration:

– Click on the Enabled checkbox to enable SSTP Server.

– Assign TCP Port 443 in the Port input field.

– Uncheck all checkboxes except the mschap2 checkbox from the Authentication.

– From the Certificate drop-down menu, select the server certificate created in the previous step.

– From the TLS version drop-down menu, select only-1.2. Any TLS version can also be selected.

– Click on the Force AES and PFS boxes.

Finally, click Apply and OK:

 

Fillin-SSTP-server-information

 

Now SSTP Server should be run in MikroTik Router.

Create SSTP Users on MikroTik

In this step, you will learn how to create PPP users on MikroTik. Because MikroTik SSTP VPN is limited to using a username and password for a successful VPN connection.

First, go to PPP >> Secrets path and then click +:

 

PPP-secrets-tab

 

And fill in the following information:

– Enter your username and password in the username and password input fields.

– From the Service dropdown menu, choose SSTP.

– Enter VPN Gateway IP in the Local Address input field. Since the virtual interface is created where the Gateway IP is automatically assigned, you do not need to assign this Gateway IP on any interface.

– Enter the IP address that is assigned in the Home Router in the Remote Address input field. You don’t need to assign on any interface, because this address will be assigned automatically.

– In order for the Office Router to reach the Home Router network in the Routes input field, enter the static route that is assigned in the office router. If you do not assign routes here, you can statically put routes in the routing table to reach the Home Router network.

Finally, click Apply >> OK:

 

New-PPP-secrets - Configure SSTP on Mikrotik

 

 

Configure SSTP VPN RouterOS Client

Firstly, go to the Interfaces menu item, click on the + drop-down menu, and choose the SSTP Client option:

 

SSTP-Client-interfaces-tab - Configure SSTP on Mikrotik

 

In the General tab, fill in the required information:

 

Interfaces-General-tab - Configure SSTP on Mikrotik

 

In the Dial Out tab, do the following configuration:

– Enter Office Router WAN IP in Connect To input field.

– Check the Verify Server Address from Certificate check box to verify the hostname.

– Check the PFS checkbox to ensure that a private encryption key is generated for each session.

– In the Name input field, enter the username you created in SSTP User and the password in the Password input field.

– From Allow protocol panel, uncheck all checkboxes except mschap2.

Lastly, click Apply >> OK:

 

Interfaces-dial-out-tab - Configure SSTP on Mikrotik

 

That’s it! The SSTP tunnel is successfully established and Home RouterOS can now successfully access the office router network. You can find connected users from PPP >> Active Connection tab.

Recommended Article: How to Analyze DHCP Server with PowerShell

Conclusion

In this article, we taught you how to configure SSTP on MikroTik. I hope you found this tutorial useful and that it helps you to setup SSTP on your MikroTik VPS server. If you have any questions or problems during the configuration process, you can check contact us in the Comments section.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

View More Posts
Marilyn Bisson
Content Writer
Eldernode Writer
We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

Leave a Reply

Your email address will not be published. Required fields are marked *

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day