Rasmus Thorslund
Rasmus Thorslund

Reputation: 21

radius accept all, but refusing client?

I have set up a radius I need for some authentication testing. However, it needs to just accept any and all requests so I have put a "DEFAULT Auth-Type := Accept" to fix that.

However, when I then test I get this from the log:

Error: Ignoring request to authentication address * port 1812 from unknown client port 42159

So I googled it and found that even though its set to allow all it still needs the IP in the clients.conf? So treid that, but now im getting:

Error: rlm_sql_getvpdata: database query error Error: [sql] SQL query error; rejecting user

Is there not any way I can accept everything without adding them as clients first?

If not how do I fix the SQL issue? I followed a guide so everything should be right.

Upvotes: 2

Views: 2592

Answers (1)

Arran Cudbard-Bell
Arran Cudbard-Bell

Reputation: 6065

You can add a client that covers the entire ipv4 range with:

client all {
    ipaddr = 0.0.0.0/0

    secret = <secret>
}

Please post the output of radiusd -X around the SQL error, as it's not possible to tell what's going on from that single log line.

Upvotes: 1

Related Questions