Use rest module differently for each site

Matthew McTague matthew.mctague at vetta.nz
Tue Nov 15 11:55:40 UTC 2022


Thank-you, very much appreciated.


Warm Regards,


.[cid:vg-email_e752d47f-182a-48d0-8808-3796b2df8d4a.png]<https://www.vetta.nz>  .[cid:058_line_9bae9502-1e3a-48a3-ba5e-34ed9cd44185.png]        Matthew McTague
Head of Infrastructure  [cid:bea-finalist-email_2ddba0ed-b9bb-4ab9-b680-84aa7f54077f.png]  [cid:bea-winner-banner-email_590096c3-05a6-4c98-b071-1c4d748c3534.png] .
D +64 3 222 6013<tel:+64%203%20222%206013> | P +64 3 684 5770
E matthew.mctague at vetta.nz<mailto:matthew.mctague at vetta.nz> | W www.vetta.nz<https://www.vetta.nz>
Vetta Group Ltd and its subsidiaries accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company, its subsidiaries, partners or contractors.
.
________________________________
From: Freeradius-Users <freeradius-users-bounces+matthew.mctague=vetta.nz at lists.freeradius.org> on behalf of Alan DeKok <aland at deployingradius.com>
Sent: Tuesday, November 15, 2022 11:29:37 PM
To: FreeRadius users mailing list <freeradius-users at lists.freeradius.org>
Subject: Re: Use rest module differently for each site

On Nov 15, 2022, at 2:10 AM, Matthew McTague via Freeradius-Users <freeradius-users at lists.freeradius.org> 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.

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list