6 Sep
2012
6 Sep
'12
9:23 p.m.
Heh, sorry, I found the solution =) Somethink like this for example, to ignore vlan #1 (default on most devices):
if( "%{DHCP-Relay-Circuit-Id}" =~ /^0x([0-9a-f]{4})0001([0-9a-f]{4})$/i ) { reject }
Wow. After using this code ^ and also this (filter 25-28 ports, many switches relaying transit dhcp packets, not from user ports ;( ): if( "%{DHCP-Relay-Circuit-Id}" =~ /^0x([0-9a-f]{8})001([9|a|b|c])$/i ) { handled } CPU use by radiusd fell from 70% to 10-15. Great. Thank you Alan for great dhcp functional ;)