looking for help on an unusual config
Alan DeKok
aland at deployingradius.com
Thu Sep 22 16:24:14 UTC 2022
On Sep 22, 2022, at 12:12 PM, dan <dandenson at gmail.com> wrote:
> ie, request comes in with remote id of '00:11:22'
> so I want freeradius to reply with client id of 00:11:22' and 'dhcp pool =
> users' and 'accept'.
OK... I assume there are actual RADIUS attributes for this?
They're certainly not standard attributes. Maybe Mikrotik has such attributes, but I don't use Mikrotik, so I'm not familiar with them.
> Then my router will hand out an address from pool
> 'users' and the lease will show that client id. If another dhcp request
> comes in with a different MAC but the same option 82 remote ID, radius will
> do the same thing, reply back with the client id and the lease get's
> updated/replaced.
>
> Does this makes sense?
That explanation makes a lot more sense than the previous very vague question. Details matter. And giving details helps us give you the correct solution.
Which here is (as always): run the server in debug mode.
See which attributes come in the packet. Then, write if / then / else rules to match attributes. And to reply with more attributes.
See the Mikrotik documentation and/or dictionaries for which attributes need to be in the reply.
See the FreeRADIUS documentation for how to configure FreeRADIUS.
There are 1000 vendors, each of which have 1000 different products. We can't document them all, unfortunately.
Alan DeKok.
More information about the Freeradius-Users
mailing list