freeradiussettings FreeRADIUS: Settings pkg_edit.php?xml=freeradiussettings.xml&id=0 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 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() { conf_mount_rw(); config_lock(); global $config; $fout = fopen("/usr/local/etc/raddb/radiusd.conf.dynamic","w"); fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n"); $int = $config['installedpackages']['freeradiussettings']['config']['0']['interface']; $int_ip = find_interface_ip($int); $port = $config['installedpackages']['freeradiussettings']['config'][0]['port']; fwrite($fout, "{\nipaddr = " . $int_ip); if($port != "") { fwrite($fout, "port = " . $port . "\n"); } else { fwrite($fout, "port = 0\n"); } fwrite($fout, "type = auth\n}\n\n"); fwrite($fout, "{\nipaddr = 127.0.0.1\nport = 0\ntype = auth\n}\n\n"); fclose($fout); conf_mount_ro(); config_unlock(); } system("killall -HUP radiusd"); sync_package();