How to differentiate between multiple captive portals with freeradius

Started by marirs, August 13, 2022, 06:59:27 AM

Previous topic - Next topic
I'm using two captive portals on two interfaces (guest, staff), and authenticating using freeradius.

However, I can't figure out which interface the request is coming from in freeradius, which means that 'guest' users will be able to log in to the 'staff' network (and vice versa)

These are the attributes received in freeradius:


(0) Received Access-Request Id 68 from 10.102.0.1:58440 to 10.102.0.105:1812 length 83
(0)   User-Name = "test"
(0)   Service-Type = Login-User
(0)   Framed-Protocol = 15
(0)   NAS-Identifier = "62f71ef65546a"
(0)   NAS-Port = 0
(0)   NAS-Port-Type = Ethernet
(0)   User-Password = "test"


The only solution I can think of is using two (virtual) freeradius servers. Am I missing something? Ideally, the radius request should include the interface that is associated with the request.