Subdomain proxy Local
Alan DeKok
aland at deployingradius.com
Wed Nov 5 16:40:31 CET 2014
Rando Nakarmi wrote:
> I have regex in my /etc/raddb/site-enabled/default authorize section as :
>
> if (User-Name =~ /^([^@]*)@([-A-Z0-9]+(\\.[-A-Z0-9]+)+)$/i) {
Which only looks for "example.com", and not "a.example.com".
> This is working well, with example.com. but when
> user sends user at a.example.com then it sends
> to DEFAULT which send to UPstream radius server.
That's what you told it to do.
> So, what shall I do a.example.com, b.example.com
> (valid sub-domain) not to send upstream server ?
Update the regex to match subdomains, too:
if (User-Name =~ /^([^@]*)@(([-A-Z0-9]+\.)*[-A-Z0-9]+(\\.[-A-Z0-9]+)+)$/i)
Alan DeKok.
More information about the Freeradius-Users
mailing list