Konfig FreeRadius with Mikrotik-Routerboard - IP-Pool SQL
Hello! I currently have a FreeRADIUS version 3.0.20 installed on an Ubuntu 20.04.6 LTS and connected to a Mikrotik router board. Here the connection is made via PPP and DHCP and authentication is requested at the Radius. The aim of the configuration would be to provide the IP, which is now assigned via the IP pool by Mikrotik, directly via the FreeRadius database. Is this even possible in combination with Mikrotik? Thanks for the help.
You can send Framed-IP-Address from your freeradius server, mikrotik will ignore the pool enabled in default profile and will assign the IP address you sent via radius. . On Tue, Oct 17, 2023 at 2:09 PM Florian Traxler (mieX GmbH) <traxler@miex.co> wrote:
Hello!
I currently have a FreeRADIUS version 3.0.20 installed on an Ubuntu 20.04.6 LTS and connected to a Mikrotik router board. Here the connection is made via PPP and DHCP and authentication is requested at the Radius. The aim of the configuration would be to provide the IP, which is now assigned via the IP pool by Mikrotik, directly via the FreeRadius database. Is this even possible in combination with Mikrotik? Thanks for the help.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hello! Thanks for the feedback. I know this option and it works. But I would like to create IP pools on the FreeRadius and then dynamically assign them to the users. IP pools directly on the Mikrotik work, but it's not what I want. -----Ursprüngliche Nachricht----- Von: Freeradius-Users <freeradius-users-bounces+traxler=miex.co@lists.freeradius.org> Im Auftrag von Kushal Gupta Gesendet: Dienstag, 17. Oktober 2023 12:03 An: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Betreff: Re: Konfig FreeRadius with Mikrotik-Routerboard - IP-Pool SQL You can send Framed-IP-Address from your freeradius server, mikrotik will ignore the pool enabled in default profile and will assign the IP address you sent via radius. . On Tue, Oct 17, 2023 at 2:09 PM Florian Traxler (mieX GmbH) <traxler@miex.co> wrote:
Hello!
I currently have a FreeRADIUS version 3.0.20 installed on an Ubuntu 20.04.6 LTS and connected to a Mikrotik router board. Here the connection is made via PPP and DHCP and authentication is requested at the Radius. The aim of the configuration would be to provide the IP, which is now assigned via the IP pool by Mikrotik, directly via the FreeRadius database. Is this even possible in combination with Mikrotik? Thanks for the help.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Oct 17, 2023, at 7:00 AM, Florian Traxler (mieX GmbH) <traxler@miex.co> wrote:
I know this option and it works. But I would like to create IP pools on the FreeRadius and then dynamically assign them to the users. IP pools directly on the Mikrotik work, but it's not what I want.
https://wiki.freeradius.org/search?q=ippool There is documentation. Alan DeKok.
Thanks - I can now obtain IP's via a pool. How can I define the Subnet, Gateway and Lease as Reply? -----Ursprüngliche Nachricht----- Von: Freeradius-Users <freeradius-users-bounces+traxler=miex.co@lists.freeradius.org> Im Auftrag von Alan DeKok Gesendet: Dienstag, 17. Oktober 2023 13:12 An: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Betreff: Re: Konfig FreeRadius with Mikrotik-Routerboard - IP-Pool SQL On Oct 17, 2023, at 7:00 AM, Florian Traxler (mieX GmbH) <traxler@miex.co> wrote:
I know this option and it works. But I would like to create IP pools on the FreeRadius and then dynamically assign them to the users. IP pools directly on the Mikrotik work, but it's not what I want.
https://wiki.freeradius.org/search?q=ippool There is documentation. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 20/10/2023 10:53, Florian Traxler (mieX GmbH) wrote:
Thanks - I can now obtain IP's via a pool. How can I define the Subnet, Gateway and Lease as Reply?
Not sure from your original post if you're doing RADIUS or DHCP here, but you should be able to use (or adapt) the "dhcp_subnet", "dhcp_network" etc policies in the DHCP server example: https://github.com/FreeRADIUS/freeradius-server/blob/v3.2.x/raddb/sites-avai... It sounds like ("lease") you're using DHCP so those examples show the attributes to use. If RADIUS, I'm not sure off-hand what all the attributes would be - see the Microtik documentation to find out if it's supported. -- Matthew
participants (4)
-
Alan DeKok -
Florian Traxler (mieX GmbH) -
Kushal Gupta -
Matthew Newton