22
Dynamic VLAN Assignment with RADIUS and CAPsMAN Configuration Example Example MUM China April 10, 2016 MUM China April 10, 2016 Jesse Liu, Lethbridge

MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Embed Size (px)

Citation preview

Page 1: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Dynamic VLAN Assignment with RADIUS and CAPsMAN Configuration 

ExampleExample

MUM China ‐ April 10, 2016MUM China  April 10, 2016Jesse Liu, Lethbridge

Page 2: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

About MeAbout Me

• Jesse Liu, Lethbridge– Over 10 years experience using RouterOSy p g

– Specialization in Wireless, Tunnel and Routing

MikroTik Certified Consultant– MikroTik Certified Consultant

– MikroTik MTCNA, MTCWE, MTCTCE Certifications

– Cisco CCNP, CCDP Certifications

2

Page 3: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Special ThanksSpecial Thanks

3

Page 4: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

802 1X802.1X

• 802.1X is NOT an encryption type. It is basically just a per‐user (e.g. username and password) authentication mechanism.

• WPA2 is a security scheme that specifies two main aspects of your wireless security:

– Authentication: Your choice of PSK ("Personal") or u e ca o ou c o ce o S ( e so a ) oEAP ("Enterprise").

– Encryption: Always AES‐CCMPEncryption: Always AES‐CCMP.

4

Page 5: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Dynamic VLAN assignmentDynamic VLAN assignment

• VLANs are used to assign wireless users to different networks without requiring the use of multiple SSIDs. 

• Each user’s VLAN assignment is stored in the user database of the RADIUS server that authenticates the users.

5

Page 6: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Network DiagramNetwork Diagram

CAPsMAN

CAP

RADIUS Server Internal NetworkRADIUS Server

user1 / VLAN 21 user2 / VLAN 22

6

Page 7: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Security CfgSecurity Cfg.

passthrough – Controller will relay authentication process to the RADIUS server.

7

Page 8: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Add a RADIUS Server for wireless service

Timeout – defines how much milliseconds can elapsewhile the answer arrives from the RADIUS server. If you are using slower connection to RADIUS server, set this timeout higher (3000‐5000 ms).

8

Page 9: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

To create a RADIUS clientTo create a RADIUS client

9

Page 10: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Create Self Signed Server CertificateCreate Self Signed Server Certificate

Click "Generate Certificate" button to create the certificate after filling necessary fields.

10

Page 11: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Import newly created certificate to RADIUS

Add attribute "TLS‐Server‐Certificate”, type "Check". Your certificate will be in the drop down, click [Add/Update].

11

Page 12: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

VLAN InterfacesVLAN Interfaces

12

Page 13: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

DatapathDatapath

Enables and specifies type of VLAN tag to be assigned to interface (causes all received datato get tagged with VLAN tag and allows interface to only send out data tagged with given tag).

13

Page 14: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

RADIUS attributesRADIUS attributes

• The RADIUS attributes used for the VLAN ID assignment are:g

14

Page 15: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Specifies the VLAN IDSpecifies the VLAN ID

• For each user, add RADIUS attributes which specify the VLAN information to be sent to the CAPsMAN.

In this example user1 is assigned VLAN 21 and user2In this example, user1 is assigned VLAN 21 and user2is assigned VLAN 22.

15

Page 16: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

MAC address bindingMAC address binding

16

Page 17: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Bind multiple MAC addresses to one user

17

Page 18: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Bind multiple MAC addresses to one user

‐ Phone‐ Tablet‐ Laptop

18

Page 19: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Registration TableRegistration Table

• Description of an entry. Comment is taken from RADIUS attributes if specified.

19

Page 20: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

Mikrotik Wireless CommentMikrotik‐Wireless‐Comment

20

Page 21: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

EAP TLSEAP‐TLS

• For RouterOS client, EAP‐TLS is possible only.

• For RouterOS AP ‐ to clients any EAP method isFor RouterOS AP  to clients any EAP method is possible.

21

Page 22: MUM China ‐ April 10, 2016 · MUM China ‐ April 10, 2016 Jesse Liu, Lethbridge. ... – MikroTik MTCNA, MTCWE, MTCTCE Certifications – Cisco CCNP, CCDP Certifications 2. Special

More information at:More information at: http://mum.mikrotik.com/2016/CN/agenda

Thank you for participatingThank you for participating