Framed-Ip-Address - IpPool 0.0.0.0
Hi, I'm using FreeRadius with sql_ippool (postgresql) I am using default config. So, I make the configuration in Mikrotik to use FreeRadius. In Mikrotik i have ~1500 clients making pppoe and grabbing IP from FreeRadius. The problem is: sometimes clients get IP 0.0.0.0. I already activate debug log, but can't figure the problem. Someone know this problem and can help me? Thanks...
On Mar 4, 2016, at 5:02 AM, Luiz Fernando Softov <fernando@softov.com.br> wrote:
Hi, I'm using FreeRadius with sql_ippool (postgresql)
I am using default config.
So, I make the configuration in Mikrotik to use FreeRadius.
In Mikrotik i have ~1500 clients making pppoe and grabbing IP from FreeRadius.
The problem is: sometimes clients get IP 0.0.0.0.
The default configuration never sends Framed-IP-Address = 0.0.0.0. The sql_ippool module never does that, either.
I already activate debug log, but can't figure the problem.
Someone know this problem and can help me?
Post the debug log to the list, as suggested in the FAQ, "man" pages, web pages, and pretty much daily on this list. And be sure that the debug log shows a user getting an Access-Accept containing Framed-IP-Address = 0.0.0.0. Otherwise the debug log will be useless. Alan DeKok.
The default configuration never sends Framed-IP-Address = 0.0.0.0. The sql_ippool module never does that, either.
* Hi, I'm using FreeRadius with sql_ippool (postgresql) *>> >>* I am using default config. *>> >>* So, I make the configuration in Mikrotik to use FreeRadius. *>> >>* In Mikrotik i have ~1500 clients making pppoe and grabbing IP from *>>* FreeRadius. *>> >>* The problem is: sometimes clients get IP 0.0.0.0.
* I already activate debug log, but can't figure the problem. *>> >>* Someone know this problem and can help me?
I did not say that sql_ippool sends this. I say only because i receive this on Received Accounting-Request But, *
Post the debug log to the list, as suggested in the FAQ, "man" pages, web pages, and pretty much daily on this list. And be sure that the debug log shows a user getting an Access-Accept containing Framed-IP-Address = 0.0.0.0. Otherwise the debug log will be useless.
Sorry for the delay, there is the log. I don't know where i can upload this log, since this have 10MB https://www.dropbox.com/s/9dg1cn7zslfgdwd/radius.log?dl=0 (1031) Sent Access-Accept Id 120 from 177.52.73.21:1812 to 138.36.212.2:34706 length 0 (1031) Framed-Protocol = PPP (1031) Framed-Compression = Van-Jacobson-TCP-IP (1031) Mikrotik-Rate-Limit = "8000k/8000k 0/0 0/0 0/0 8 0/0" There is some enumerations: 1 - 40% of my clients are receiving IP 0.0.0.0, and can't navigate. 2 - This only happens when i have 1000 ~ 1500 clients. 3 - I have Radius integrated with Mikrotik (PPPOE) 4 - FreeRadius Version 3.0.10 6 - I'm using PostgreSQL 8.4 (tried 9.4 and another version, same thing) What I wanted to know, is because sometimes clients receive the IP 0.0.0.0? 2016-03-04 6:02 GMT-04:00 Luiz Fernando Softov <fernando@softov.com.br>:
Hi, I'm using FreeRadius with sql_ippool (postgresql)
I am using default config.
So, I make the configuration in Mikrotik to use FreeRadius.
In Mikrotik i have ~1500 clients making pppoe and grabbing IP from FreeRadius.
The problem is: sometimes clients get IP 0.0.0.0.
I already activate debug log, but can't figure the problem.
Someone know this problem and can help me?
Thanks...
On Mar 7, 2016, at 12:47 AM, Luiz Fernando Softov <fernando@softov.com.br> wrote:
The default configuration never sends Framed-IP-Address = 0.0.0.0. The sql_ippool module never does that, either.
I did not say that sql_ippool sends this. I say only because i receive this on Received Accounting-Request
Then say that. Don't say "the client receives an address of 0.0.0.0" The two statements are VERY different.
Sorry for the delay, there is the log. I don't know where i can upload this log, since this have 10MB https://www.dropbox.com/s/9dg1cn7zslfgdwd/radius.log?dl=0
OK...
(1031) Sent Access-Accept Id 120 from 177.52.73.21:1812 to 138.36.212.2:34706 length 0 (1031) Framed-Protocol = PPP (1031) Framed-Compression = Van-Jacobson-TCP-IP (1031) Mikrotik-Rate-Limit = "8000k/8000k 0/0 0/0 0/0 8 0/0"
So the server isn't sending a Framed-IP-Address attribute. Why? Well... if you *read* the debug output, you'll see that it never runs the "sqlippool" module for that packet In fact, it doesn't run the sqlippool module for *any* packet.
What I wanted to know, is because sometimes clients receive the IP 0.0.0.0?
Because you never told the server to assign an address to a user. Put "sqlippool" into the "post-auth" section. It will then run the module... and assign addresses. The debug output shows all this. We recommend reading the debug output because it explains what the server is doing. You can learn a lot by reading it. So read it. Alan DeKok.
participants (2)
-
Alan DeKok -
Luiz Fernando Softov