Freeradius as dhcp; parsing option82

Ilya A. Masandilov wingman at ip-home.net
Thu Sep 6 23:23:50 CEST 2012


> 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 ;)




More information about the Freeradius-Users mailing list