Community discussions

MikroTik App
 
operat0r
newbie
Topic Author
Posts: 32
Joined: Mon May 29, 2017 9:18 pm

Connect Mikrotik Device to Ubiquiti AP via 802.1x

Wed Jul 03, 2019 4:39 pm

Hello,

I'm trying to configure a mikrotik device ( a mAP lite ) to connect to an Ubiquiti AP which uses 802.1x for AAA.
Is there a way to make the mAP lite act as a wireless client connecting to a 802.1x network ? What will be the configuration required in the Mikrotik device?
I would really appreciate any insights and info.

Best Regards,
Panagiotis Botos
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19322
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Connect Mikrotik Device to Ubiquiti AP via 802.1x

Wed Jul 03, 2019 8:48 pm

Hmm I believe the latest firmware update may include something that helps........ ??

RouterOS version 6.45.1 has been released in public "stable" channel!
MAJOR CHANGES IN v6.45.1:
----------------------
!) dot1x - added support for IEEE 802.1X Port-Based Network Access Control;
 
robertkjonesjr
Frequent Visitor
Frequent Visitor
Posts: 71
Joined: Tue Jul 03, 2012 1:39 am

Re: Connect Mikrotik Device to Ubiquiti AP via 802.1x

Wed Jul 03, 2019 11:51 pm

I run this using EAP-TLS from a Mikrotik hAPac device as wireless client with WPA2-Enterprise configured on a UBNT wifi system. It is on 6.44.3; on the hAP, choose station mode, assign the SSID, and the security profile:
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-eap eap-methods=eap-tls group-key-update=1h management-protection=allowed mode=dynamic-keys name=\
    EAPTLS supplicant-identity=wifi tls-certificate=TIK_f999 tls-mode=verify-certificate
/interface wireless
set [ find default-name=wlan2 ] band=5ghz-a/n/ac basic-rates-a/g=54Mbps channel-width=20/40/80mhz-Ceee country="united states" \
    disabled=no frequency=auto frequency-mode=regulatory-domain ht-basic-mcs="" installation=indoor multicast-helper=disabled \
    security-profile=EAPTLS ssid=SECRETSSID supported-rates-a/g=24Mbps,36Mbps,48Mbps,54Mbps vht-basic-mcs=none vlan-id=28 vlan-mode=\
    use-tag wireless-protocol=802.11 wmm-support=enabled
Don't forget to load a client cert with private key and the server root so TLS can complete. The UBNT system uses Freeradius on the backend as the AAA server for authentication in this case. I haven't tried it, but looks like you could do PEAP and TTLS as well.
WinBox v6.44.3 on hAP ac (mipsbe).png
You do not have the required permissions to view the files attached to this post.
 
operat0r
newbie
Topic Author
Posts: 32
Joined: Mon May 29, 2017 9:18 pm

Re: Connect Mikrotik Device to Ubiquiti AP via 802.1x

Thu Jul 04, 2019 11:16 am

Unfortunately, I can't make it work. No logs whatsoever in NPS ( Windows Server ).
Connecting with my phone to this user works like a charm though.

In the logs of the Mikrotik I can only see:

Failed to connect : authentication failed: unspecified (37)

It seems that it is not even connecting to the AP of ubnt.

I use WPA2 EAP, in authentication Type .
EAP Methods: PEAP
TLS Mode: don't verify certificate ( self signed certificate ).
Add MSCHAPv2 username and password ( credentials checked and are ok ).

I'm really confused on how to make this work.

Usually when I connect with my phone to the Ubnt AP, it asks for username and password, which in turn query NPS server and if creds are ok, it connects the client to the specific vlan.

In case you have any other info that can help me sort this out, I would really appreciate it.
 
operat0r
newbie
Topic Author
Posts: 32
Joined: Mon May 29, 2017 9:18 pm

Re: Connect Mikrotik Device to Ubiquiti AP via 802.1x

Thu Jul 04, 2019 4:17 pm

Update:

After thorough checking I seemed to find a solution.
The Ubnt access point advertise both 2 and 5 G wireless SSIDs.

When connecting another mikrotik device ( which supports 5G connections ) it connected just fine.
The mAP lite unfortunately does not support 5G only 2.4G .

So, this is working... Every device I've tried connecting with 5G works as expected.
In order to further test my assumptions, I disabled 5G announcement on the Ubnt AP, so any device will try to connect using 2.4G .
The problem here is that some devices connect normally, and others do not connect at all ( this including a Windows 10 laptop ).

So I'm guessing this has to do with Ubnt and not Mikrotik.
Just information for anyone out there having the same issues.
 
operat0r
newbie
Topic Author
Posts: 32
Joined: Mon May 29, 2017 9:18 pm

Re: Connect Mikrotik Device to Ubiquiti AP via 802.1x  [SOLVED]

Thu Jul 04, 2019 4:41 pm

Update2:

Talked with Ubiquiti support they informed me to disable :

AUTO-OPTIMIZE NETWORK .

Having done that now I can connect with my mikrotik using 2.4G also. Bump.
 
User avatar
macsrwe
Forum Guru
Forum Guru
Posts: 1007
Joined: Mon Apr 02, 2007 5:43 am
Location: Arizona, USA
Contact:

Re: Connect Mikrotik Device to Ubiquiti AP via 802.1x

Sat Sep 07, 2019 6:25 am

That's sweet, but for the cases where the UBNT network is not under control of the person who owns the MikroTik, is there any way to configure the MikroTik to "unoptimize" the connection enough to authenticate to the UBNT? I'm stuck in a situation where my smartphone and laptop can connect to the AP with no problem, but the MikroTik cannot. That's not something to brag about.

Who is online

Users browsing this forum: No registered users and 19 guests