Proxy

Nicolas Breuer Nicolas.Breuer at belcenter.biz
Thu Nov 25 16:48:18 CET 2021


I missed something ?

/etc/raddb/config/Belcenter_DSL.conf[362]: Parse error in condition
/etc/raddb/config/Belcenter_DSL.conf[362]: (&proxy:Proxy-State) {
/etc/raddb/config/Belcenter_DSL.conf[362]:   ^ Invalid list qualifier
Errors reading or parsing /etc/raddb/radiusd.conf

..........
 if (&proxy_reply:Proxy-State) {
...........

-----Message d'origine-----
De : Freeradius-Users <freeradius-users-bounces+nicolas.breuer=belcenter.biz at lists.freeradius.org> De la part de Alan DeKok
Envoyé : jeudi 25 novembre 2021 16:33
À : FreeRadius users mailing list <freeradius-users at lists.freeradius.org>
Objet : Re: Proxy



> On Nov 25, 2021, at 10:22 AM, Nicolas Breuer <Nicolas.Breuer at belcenter.biz> wrote:
> ...
> (0)   Proxy-State = 0x313036
> (0)     if ("&reply:Proxy-State" =~ /$/) {
> (0)     if ("&reply:Proxy-State" =~ /$/)  -> TRUE
> (0)     if ("&reply:Proxy-State" =~ /$/)  {
> 
> Trying to expand Proxy-State but returns empty

  You don't need to quote the attribute name.  None of the documentation and examples do that.

  You don't need to check for non-empty values via a regular expression.  You can just check if the attribute exists.  See "man unlang"

  And even if that's fixed, you're looking at the *reply* list.  The Proxy-State is in the *proxy* and *proxy_reply* list.  Read the debug output to see this.

  So what you want is:

	if (&proxy:Proxy-State) {
		... prequest was proxied
	}

  Alan DeKok.


-
List info/subscribe/unsubscribe? See https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeradius.org%2Flist%2Fusers.html&data=04%7C01%7Cnicolas.breuer%40belcenter.biz%7C0b74e0facd17477842b308d9b028dac5%7C76244800c22e467dbae3c6fda9544a51%7C0%7C0%7C637734511796509980%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=QhRNDkJXMBfQbZyTCYNRs4YNCiH%2BPpEWYZ0W6uVODkU%3D&reserved=0



More information about the Freeradius-Users mailing list