Community discussions

MikroTik App
 
ColinSlater
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 59
Joined: Sun Sep 12, 2021 2:32 pm

SSTP - Authentication by RADIUS

Tue Sep 13, 2022 7:01 pm

Hi,
I have an RB4011 as our main router. We have setup an SSTP VPN and this is working really well.
We also have Hotspot setup for our authenticated WiFi, which uses RADIUS to authenticate users against our Active Directory… again working really well.

I can see that it’s possible to authenticate PPP users using the Radius (and I have enabled this), but it seems for the SSTP VPN users, we have to manually create a secret for each user.
If it possible to authenticate SSTP Users via Radius at all or is the PPP/Radius limited only to PPPoE (something I read online seemed to point at this, but wasn’t amazingly clear).
I think we have all the pieces setup to be able to do this, if it’s possible.

Thanks

Colin
 
User avatar
vecernik87
Forum Veteran
Forum Veteran
Posts: 882
Joined: Fri Nov 10, 2017 8:19 am

Re: SSTP - Authentication by RADIUS

Wed Sep 14, 2022 1:40 am

Yes. It is possible. I use this with WS 2022 but I also had it working on SBS2011 (which is just bundled WS2008r2)
You need to make sure that
  • your PPP setup allows using radius (in ppp/secrets)
  • your radius profile in mikrotik is allowed to be used for ppp service
  • your server accepts radius requests with the same encryption as used for SSTP
That's from memory all main steps which I had to do. I had some issues as well but all I had to do was follow the breadcrumbs in logs and see mikrotik radius requests and answers from the server.
/radius
add address=domain.controller domain=example.com secret="xxxxxxx" service=ppp
add address=domain.controller domain=example secret="xxxxxxx" service=ppp
Thats all.. I have two entries intentionally because user can log in with
user.name@example.com
or
example\user.name
From the log, you should see if the radius gets called or not and what is the result. Temporarily enable logging for all radius messages with
/system logging add action=memory topics=radius
and see whats going on:

Typically, you may see "no radius server found". That most of the time means your domain does not match with what user requested.
winbox_KBLloLKQui.png
When the radius server is found but times out, either the IP is incorrect, or the server does not accept requests.
winbox_Nn2X515zUl.png
You do not have the required permissions to view the files attached to this post.
Last edited by vecernik87 on Wed Sep 14, 2022 7:03 am, edited 4 times in total.
 
AidanAus
Member Candidate
Member Candidate
Posts: 177
Joined: Wed May 08, 2019 7:35 am
Location: Australia
Contact:

Re: SSTP - Authentication by RADIUS

Wed Sep 14, 2022 6:26 am

100% possible and we use it a fair bit, lets say you have all the sstp stuff set up like connecting clients, using certs etc and we are just hooking up the radius.
  1. you will need to set up the radius client, this is just by going to radius from the main menu on the left hand side of webfig/winbox, in the new window add a new server or edit your existing if you are using the same server as the hotspot etc. make sure that PPP is ticket as a service then the minimum in here is to set the address of the radius server and the ports but you will probably want to password protect this.
    The other thing to note is if your radius server is remote I would recommend not directly connecting to the server through the public interface but instead set up a tunnel and route the traffic through the vpn tunnel as well as you might want to turn the timeout up a bit :)
  • optional, back in the root of the radius menu there should be an incoming button/section you will need to allow this if you would like this router to respond to messages initiated form the server, this is for CoA purposes so it can kick radius users off that go out of their limitations I.e used to much bandwidth, times up etc. this is simple all you need to do is tick accept and make sure the port is the same one the server is using for this
  • now you will need to go to ppp from the main menu on the right, in there you will need to go to secrets and click the PPP authentication&accounting button, make sure ithas use radius ticket as well as accounting if you want the router to update the radius server on uptime, bandwidth usage etc. If you do want updates I would suggest changing the intrum updates, this is the time in between sending updates, if you have a lot of devices connected to the same radius server its worth turning this timer up so you are not "ddos'ing" yourself
Off the top of my head that should be the basics of the Mikrotik end of connecting it to the radius server, remember that the radius client has statistics for requests etc as well as stats for the incoming packets, this is a quick way to see if this is working or not or enable radius and debugs topics and see if you are getting any request and responses for those request :)
 
ColinSlater
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 59
Joined: Sun Sep 12, 2021 2:32 pm

Re: SSTP - Authentication by RADIUS

Wed Sep 14, 2022 7:45 am

Fantastic - thank you very much both of you.
I shall have a go this week/weekend and report back.

Who is online

Users browsing this forum: 5h4k4 and 63 guests