freeradiusclients FreeRADIUS: Clients Users /pkg.php?xml=freeradius.xml Clients /pkg.php?xml=freeradiusclients.xml Settings /pkg_edit.php?xml=freeradiussettings.xml&id=0 installedpackages->package->$packagename->configuration->settings Client client Shortname shortname Description description Client client Enter the client's IP address here input Shortname shortname Enter the client's shortname here input Shared Secret sharedsecret Enter the client's shared secret here password Description description Enter the description of the user here input function sync_package_freeradius_clients() { conf_mount_rw(); config_lock(); global $config; $fout = fopen("/usr/local/etc/raddb/clients.conf","w"); fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n"); fwrite($fout, "client 127.0.0.1" . "{\n" . "secret = pfsense\n" . "shortname = localhost\n}\n\n"); if($config['installedpackages']['freeradiusclients']['config'] != "") { foreach($config['installedpackages']['freeradiusclients']['config'] as $rowhelper) { fwrite($fout, "client " . $rowhelper['client'] . "{\n" . "secret = " . $rowhelper['sharedsecret'] . "\nshortname = " . $rowhelper['shortname'] . "\n}\n\n"); } } fclose($fout); conf_mount_ro(); config_unlock(); system("killall -HUP radiusd"); } sync_package_freeradius_clients(); sync_package_freeradius_clients();