MikroTik

How to use mikrotik sstp with windows 7 and above

How to use Mikrotik SSTP server with windows 7 and above

First of all you need to create cerficates: CA (Certification authority) and Server

You can use openssl or create certificate right in mikrotik (http://wiki.mikrotik.com/wiki/Manual:Create_Certificates)

In this case we generate certificates in Mikrotik RouterOS 6

Make certificate templates

/certificate
add name=ca-template common-name=CA key-usage=key-cert-sign,crl-sign
add name=server-template common-name=server

Sign certificates and add CRL url. We will use IP address of the server as CRL URL.

/certificate 
sign ca-template name=CA ca-crl-host=IP_ADDRESS
sign server-template ca=CA name=server

If certificate does not have T flag then you need to set it as trusted before using it:

/certificate
set CA trusted=yes
set server trusted=yes

Export client certificates with keys and CA certificate:

/certificate export-certificate CA

After this command see your certificate in Files with name cert_export_CA.crt

Install cert_export_CA.crt in Windows certmgr.msc in Trusted Root Certificates for local computer https://technet.microsoft.com/en-us/library/cc754841(v=ws.11).aspx

Setup Mikrotik SSTP server

/interface sstp-server server
set authentication=mschap2 certificate=server default-profile=default-encryption enabled=yes force-aes=yes max-mru=1400 max-mtu=1400 mrru=1500 pfs=yes

Troubleshooting

After Windows 7 upgrade SSTP is unable to connect (windows error 631) ?
MS Patch KB2585542 changes cypher to RC4 which was not supported on RouterOS. Starting from RouterOS v5.13 RC4 is the preferred cipher and AES will be used only if peer does not advertise RC4.
After Windows 7 upgrade SSTP is unable to connect (windows error 631) ?
MS Patch KB2585542 changes cypher to RC4 which was not supported on RouterOS. Starting from RouterOS v5.13 RC4 is the preferred cipher and AES will be used only if peer does not advertise RC4.
I get following error when trying to connect Windows 7 client. Error 0x80070320 The oplock that was associated with this handle is now associated with a different handle.
Disable verify-client-certificate option on the server.
I get following error «Encryption negotiation rejected”.
Disable use-encryption option in ppp profile.
admin

Recent Posts

How to back up and restore the ESXi host configuration

Original https://kb.vmware.com/s/article/2042141 Backing up ESXi host configuration data To synchronize the configuration changed with persistent…

11 месяцев ago

vCenter Converter Standalone download

vCenter Converter Standalone 6.6.0 download (далее…)

12 месяцев ago

VMware remote console (VMRC) 12 download

VMware remote console (VMRC) 12.0.5 download Last version: VMware Remote Console 12.0.5  28 NOV 2023…

2 года ago

Mysql calculate row size for all tables

SELECT col_sizes.TABLE_SCHEMA, col_sizes.TABLE_NAME, SUM(col_sizes.col_size) AS EST_MAX_ROW_SIZE FROM ( SELECT cols.TABLE_SCHEMA, cols.TABLE_NAME, cols.COLUMN_NAME, CASE cols.DATA_TYPE WHEN…

2 года ago

Mysql change date format in database

UPDATE DB SET column = DATE(STR_TO_DATE(column, '%Y-%d-%m')) WHERE DATE(STR_TO_DATE(column, '%d-%m-%Y')) <> '0000-00-00'

2 года ago

esxi debian lvm extend partition

echo 1 > /sys/class/block/sda/device/rescan #maybe run under root> sudo fdisk /dev/sda2 > d > 2…

2 года ago