Hint. Need help

Alan DeKok aland at deployingradius.com
Fri Mar 21 10:05:57 CET 2008


Mikhail Novikov wrote:
> Hello
> 
> Please, what the hint should I add to hints file to remove Nas-Port-ID attribute
> 
> Nas-Port-ID  = GigabitEthernet 0/0/3.23203101:2321-121
> 
> and add PortID like this
> 
> PortID  = 2321-121

  Use a regular expression to re-write it:

DEFAULT	NAS-Port-Id =~ ".*:(.*)"
	NAS-Port-Id = "%{1}"

  Alan DeKok.



More information about the Freeradius-Users mailing list