Change Fixed IP to POOL on Fail

Aurélio de Souza Ribeiro Neto netolistas at mpc.com.br
Wed Nov 7 12:29:39 CET 2018


Hello Everyone.

     I'm using FreeRadius 3-3.0.17_2 and I want to pick an IP from Pool 
to a user who uses Fixed IP and tries to connect with wrong password.

     I tried to put this set in my default file and Fixed IP always 
overrides the pool IP.

         Auth-Type MS-CHAP {
                 mschap  {
                        reject = 1
                     }

                     if(reject) {

                        update control {
                          Pool-Name := "mkt_pool"
                        }

                        update reply {
                          Mikrotik-Rate-Limit := "300K/2M 600K/2200K 
450K/1500K 10/10"
                        }

                        ok
                    }

         }



     Some hint?

     Thanks

Aurélio




More information about the Freeradius-Users mailing list