ADSL Circuit ID and ADSL Remote ID Freeradius V3

This post shows how Freeradius has changed the default data type of ADSL-Agent-Circuit-Id and ADSL-Agent-Remote-Id to octal. This makes it difficuit to match on values in if statements in stanzas like the following. if (NAS-Identifier == "x.x.x.x") { if (User-Name !~ /@/ ) { if (ADSL-Agent-Circuit-Id =~ /XXX/) { update request { User-Name := "%{ADSL-Agent-Circuit-Id}" User-Password := "%{ADSL-Agent-Circuit-Id}" } } if (ADSL-Agent-Remote-Id =~ /XXX/) { update request { User-Name := "%{ADSL-Agent-Remote-Id}" User-Password := "%{ADSL-Agent-Remote-Id}" } } } } The above configuration will never match as the values that are passed through this config are HEX....

September 19, 2021 · 1 min · Sam Faunt