Page 1 of 1

what options for 2 factor authentication for VPN access

Posted: Thu Mar 10, 2022 5:25 pm
by kd7vea
I have been looking at options for setting up 2-factor authentication when connecting to a Mikrotik VPN. I have seen Rublon and Miniorange as probably the most referenced options, but I'm wondering if anyone here has an open-source/free option that works. My organization is not against paying for a solution, but if there is an option that doesn't need to be paid for, that is always preferred. This is a mandatory item for Cyber security insurance, so I am just looking at all of my options. Yes we can self-host, and we do have our own SMS gateway if that's required. Thanks

Re: what options for 2 factor authentication for VPN access

Posted: Thu Mar 10, 2022 6:56 pm
by 404Network
Hmm I wonder if hotspot, user manager etc........ could provide some sense of authenticated login.............
I am not aware of 2 factor authentication like a rolling code device, or popup on the smartphone or via any one of the popular apps for smart phones yet being available for RoS.

Read this thread for ideas!!!

viewtopic.php?p=911961&hilit=two+factor ... on#p911961

Re: what options for 2 factor authentication for VPN access

Posted: Thu Mar 10, 2022 8:19 pm
by holvoetn
Hotspot could be an option but it's not functioning correctly in ros7.
Should be fine with ros6.

I am interested in other options too...

Re: what options for 2 factor authentication for VPN access

Posted: Thu Mar 10, 2022 8:42 pm
by kd7vea
Thanks, I will check out the article and look into Hotspot. I think this will be a fun project or at least a learning experience. I never know which one to expect.

Re: what options for 2 factor authentication for VPN access

Posted: Thu Mar 10, 2022 8:58 pm
by jprietove
You can use Radius for authentication purpouse and enable any of the many 2FA plugins. Check, as an example, FreeRadius with Google Authenticator or Latch (from ElevenPath)

Re: what options for 2 factor authentication for VPN access

Posted: Thu Mar 10, 2022 9:19 pm
by kd7vea
You can use Radius for authentication purpouse and enable any of the many 2FA plugins. Check, as an example, FreeRadius with Google Authenticator or Latch (from ElevenPath)
Thanks, This looks like it may be the way to. Ill do some research.

Re: what options for 2 factor authentication for VPN access

Posted: Fri Mar 11, 2022 4:56 am
by kreload
2FA on mikrotik can be users-passwords + certificates. If you want MFA, probably external radius.

Re: what options for 2 factor authentication for VPN access

Posted: Wed Mar 16, 2022 4:06 pm
by kd7vea
2FA on mikrotik can be users-passwords + certificates. If you want MFA, probably external radius.
We are using user passwords and certificates already, but the insurance company says that does not qualify as 2 factor (we had the same thought) We got radius working yesterday so today I am going to try to tackle Google authenticator. we spent a few hours running the freeradius debugger to find all the little pieces that aren't covered in the tutorials

Re: what options for 2 factor authentication for VPN access

Posted: Wed Mar 16, 2022 5:44 pm
by anav
Good work! Keep us up to date on progress!!

Re: what options for 2 factor authentication for VPN access

Posted: Mon May 16, 2022 4:25 pm
by PackElend
we spent a few hours running the freeradius debugger to find all the little pieces that aren't covered in the tutorials
would be great if you share them.
By the way, using https://www.notakey.com/products/ might a less headache alternative, depending on the amount of users.
The tutorial is here: https://gintskirsteins.medium.com/free- ... 2b5ae6d2de

----
A different but related question, would it be possible to use WireGuard VPN, which lands the user on a Hotspot?

Re: what options for 2 factor authentication for VPN access

Posted: Mon May 16, 2022 4:30 pm
by holvoetn
A different but related question, would it be possible to use WireGuard VPN, which lands the user on a Hotspot?
Theoretically: why not ? It's an interface carrying IP like so many other ones.

Re: what options for 2 factor authentication for VPN access

Posted: Mon May 16, 2022 4:44 pm
by PackElend
A different but related question, would it be possible to use WireGuard VPN, which lands the user on a Hotspot?
Theoretically: why not ? It's an interface carrying IP like so many other ones.
Theoretically :lol:
I haven't done a WireGuard setup yet and I'm still a hotspot newbie, despite viewtopic.php?p=933317#p933317.
I was hoping to find instructions on how to do it properly.

Re: what options for 2 factor authentication for VPN access

Posted: Tue May 17, 2022 1:29 pm
by jcortega
You can use the user-manager package in ROS7.
You can add users with their pass and the OTP parameter in order to use it with Google Authenticator

Re: what options for 2 factor authentication for VPN access

Posted: Mon Aug 15, 2022 5:07 pm
by pandreozzi
I love Mikrotik. The answers always seem to be Hmmmm or it should work.

Why don't they have definitive answers.

That's why people use Juniper and Cisco. More money for sure but at least you know it will work.

Re: what options for 2 factor authentication for VPN access

Posted: Mon Aug 15, 2022 7:28 pm
by anav
Sounds like you also fornicate with your juniper and crisco devices.
If you want someone to hold your hand, look elsewhere.

Re: what options for 2 factor authentication for VPN access

Posted: Fri Feb 03, 2023 9:34 pm
by kingslavcho
As i understood here, there is no free option to use 2FA for Mikrotik routers!?!? If i want a free radius to validate my logins i will have to run it on a server and forward the router to that server!?

Re: what options for 2 factor authentication for VPN access  [SOLVED]

Posted: Wed Apr 10, 2024 6:57 am
by kwade
As i understood here, there is no free option to use 2FA for Mikrotik routers!?!? If i want a free radius to validate my logins i will have to run it on a server and forward the router to that server!?
No. It looks like ROS 7's User Manager package is a Radius server which has TOTP capabilities.
https://help.mikrotik.com/docs/display/ ... entication

Re: what options for 2 factor authentication for VPN access

Posted: Wed Apr 10, 2024 7:08 am
by abbio90
I confirm, usermanager works with Google Authenticator. tested and working perfectly.
https://foisfabio.it/index.php/2024/04/ ... ik-otp-vpn

Re: what options for 2 factor authentication for VPN access

Posted: Tue May 21, 2024 12:39 am
by djvabe
Does anyone have a solution to make the static-challenge setting work with OpenVPN? Or something that asks for the password and the OTP in 2 text fields?

Re: what options for 2 factor authentication for VPN access

Posted: Wed May 22, 2024 12:29 am
by BrianHiggins
Duo has a great solution that works really well for 2FA with MT and other solutions. Using it in a lot of places and it's worked great for several years

Re: what options for 2 factor authentication for VPN access

Posted: Wed May 22, 2024 8:13 am
by holvoetn
Any details on the process ?

Re: what options for 2 factor authentication for VPN access

Posted: Tue Jul 23, 2024 1:56 pm
by spippan
I confirm, usermanager works with Google Authenticator. tested and working perfectly.
https://foisfabio.it/index.php/2024/04/ ... ik-otp-vpn
confirming this also.
tested it also as "login" provider - so AAA users for device login (e.g. a network admin) working without issues