eksoverzero / whmcs-freeradius

FreeRADIUS server module for WHMCS
111 stars 79 forks source link

No FreeRadius User Groups #29

Open amaurynieto opened 7 years ago

amaurynieto commented 7 years ago

Hi! tremendous work on the freeradius plugin, thanks very much - question - does the plugin itself allow for this configuration you mentioned (rate limits, connection limits, IP pool, etc)? on WHMCS 7.2 all I see in module commands is Create Suspend Unsuspend Terminate Change Package "" Password and Update IP Address.

Where do I change that?

Next question - whenever i run cron.php on the radius server, it lists out my clients and says..

Client1: Invalid IP IP address of the localhost radius server (eth0) Client2: Invalid IP IP address of the localhost radius server(eth0) Client3: Invalid IP IP address of the localhost radius server(eth0) Client 4: Invalid IP IP address of the localhost radius server(eth0)

Thanks so much...

eksoverzero commented 7 years ago

Hey, @amaurynieto. There is an update in progress, in the refactor branch. WHMCS changed a fair amount since the initial writing of the plugin.

I am trying to finish it as quickly as possible but when the update comes these things should be fixed.

Make sure that cron.php runs on a server that has access the FreeRADIUS MySQL database.

amaurynieto commented 7 years ago

Thanks so much! I do run cron.php on the same server that holds the FreeRadius SQL DB, and have the login and password properly configured. So much so that the list of accounts on the SQL db show up, but a weird output comes out as above, "Invalid IP ..." (The IP address of the world facing ipv4 address of the same server, that is to say, the eth0 IP address).

from reading (not very savvy) the cron.php i think it invokes radclient (the path is correct), so therefore radclient has that output. God knows why..

eksoverzero commented 6 years ago

Hey, @amaurynieto. If it's on the same server, you can use localhost or 127.0.0.1