Correct RegEX format for virtual server in proxy.conf

Alan DeKok aland at deployingradius.com
Tue May 17 16:47:57 CEST 2011


Sallee, Stephen (Jake) wrote:
> I am trying to follow the excellent instructions in the proxy.conf file
> for setting up a virtual server using realms, however I keep getting an
> error when I try to start radisud –X telling me that the regex is
> invalid… here is my realm decleration, what am I doing wrong?
...
> realm ~*\.cru$ {
> 
> /etc/raddb/proxy.conf[676]: Invalid regex in realm "~*\.cru$"

  You're missing an initial ".", the "*" operator matches *something*.

realm "~.*\\.cru$" {

  i.e. ~   .   *

  not  ~  *

  Again, the example in proxy.conf is correct. :)

  Alan DeKok.



More information about the Freeradius-Users mailing list