Detect source interface ad a attribute

Mikhail Gaydamaka mikhail.gaydamaka at eltex.nsk.ru
Wed May 18 07:25:42 CEST 2016


Good day
I want to process some radius packets depending on the source interface

radiusd.conf

    # Some interface 1
    listen {
         ipaddr = 192.168.26.225
         port = 1812
         type = auth
    }

    listen {
         ipaddr = 192.168.26.225
         port = 1813
         type = acct
    }

    # Some interface 2
    listen {
         ipaddr = 192.168.62.1
         port = 1812
         type = auth
    }

    listen {
         ipaddr = 192.168.62.1
         port = 1813
         type = acct
    }


sites-available/default

         if (Src-Ip=="192.168.26.225") {
                 module1
         }
         elsif (Src-Ip=="192.168.62.1") {
                 module2
         }
         else {
                 module
         }

How can I configure it?


More information about the Freeradius-Users mailing list