Use rest module differently for each site

Alan DeKok aland at
Tue Nov 15 10:29:37 UTC 2022

On Nov 15, 2022, at 2:10 AM, Matthew McTague via Freeradius-Users <freeradius-users at> wrote:
> I'm using FreeRADIUS 3.2.1 on AlmaLinux 8.6, from the NetworkRADIUS repo.
> I want to use the rest module for multiple sites, default and dhcp.
> I ideally want to change uri and data, which will contain different information for a BNG's RADIUS requests vs a DHCP relay sending DHCP requests to FreeRADIUS.
> Is there a way to duplicate the rest module, or configure additional sections with custom naming?

  You can duplicate the rest module and give the duplicates different names:

rest rest1 {
	... config for 1

rest rest2 {
	... config for 2

  Then instead of using "rest", you use "rest1" or "rest2", depending on which one you want.

  Alan DeKok.

More information about the Freeradius-Users mailing list