4

I have a problem setting up FreeRadius server to allow connections from all external IP addresses. My hotspot system is based on CoovaAP and custom made captive portal which communicates with CoovaChilli (deployed on router, not on server). Router is connected to modem via ethernet. Captive portal communicates with radius mysql database to verify the hotspot authorization. Everything works until the modem IP address is changed.

Here is a sample from /etc/raddb/clients.conf:

client x.x.x.x {
  secret = 12345
  shortname = name
}

So, the x.x.x.x ip address somehow needs to be dynamic. And i dont know how to sync modem`s external ip address to radius database to make it work.

The question is: how to make freeradius accept connections from all ip addresses or sync modem`s external ip address into radius database.

Thanks

1 Answer 1

17

Sure, you can do a :

# All IPv4
client 0.0.0.0/0 {
  secret = 12345
  shortname = name
}
# All IPv6
client ::/0 {
  secret = 12345
  shortname = name
}
4
  • thank you.it works for me. I will try the dynamic clients too.
    – user185816
    Aug 16, 2013 at 3:21
  • Is this going to work for IPv6 or do I need to include second client "::/0"?
    – PSSGCSim
    Jun 24, 2017 at 16:20
  • 1
    @PSSGCSim this works for IPv4, if you want IPv6 you need another entry.
    – mat
    Jun 24, 2017 at 17:03
  • Thank you @mat, could you please also edit your answer for others to find this answer easily?
    – PSSGCSim
    Jun 25, 2017 at 6:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .