freeradiussettings FreeRADIUS: Settings pkg_edit.php?xml=freeradiussettings.xml&id=1 Users /pkg.php?xml=freeradius.xml Clients /pkg.php?xml=freeradiusclients.xml Settings /pkg_edit.php?xml=freeradiussettings.xml&id=1 installedpackages->package->$packagename->configuration->settings Listening Interface(s) interface Enter the desired listening interface here interfaces_selection Port port Enter the desired port here (default 1812) input function sync_package() { global $config; $fout = fopen("/usr/local/etc/raddb/radiusd.conf.dynamic","w"); $int_ip = find_interface_ip($config['installedpackages']['freeradiussettings']['config']['interface']); fwrite($fout, "{\nipaddr = " . $int_ip); if($config['installedpackages']['freeradiussettings']['config']['port'] != "") { fwrite($fout, "port = " . $port . "\n"); } else { fwrite($fout, "port = 0\n"); } fwrite($fout, "type = auth\n}\n\n") ; fclose($fout); } mwexec("killall radiusd"); mwexec("/usr/local/etc/rc.d/radiusd"); sync_package(); sync_package();