Hello Alan, It's not going wrong. I have some users with fixed IPs, but when user try to connect with wrong Password I want that user to use an IP from a determined IPPOOL and not your fixed IP, because using right or wrong password he got Internet. As you always told, the FR is doing the right thing. I just want to do this change. Thank you Aurélio Em 09/11/2018 16:50, Alan DeKok escreveu:
On Nov 6, 2018, at 11:06 AM, Aurélio de Souza Ribeiro Neto <netolistas@mpc.com.br> wrote:
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.
That only works in some cases.
I tried to put this set in my default file and Fixed IP always overrides the pool IP.
Auth-Type MS-CHAP { mschap {
It probably won't work for MS-CHAP. The users system will verify the servers response to see if the server knows the password. If the response isn't correct, the system will drop the connection.
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?
Is anything going wrong? Do you have debug output? What do you expect it to do? What actually happens?
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html