aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/freeradius.xml1
-rw-r--r--packages/freeradiusclients.xml1
-rw-r--r--packages/freeradiussettings.xml1
-rw-r--r--packages/ifstated.xml1
-rw-r--r--packages/iperfserver.xml6
5 files changed, 10 insertions, 0 deletions
diff --git a/packages/freeradius.xml b/packages/freeradius.xml
index ce0ca9d3..4d8c7588 100644
--- a/packages/freeradius.xml
+++ b/packages/freeradius.xml
@@ -79,6 +79,7 @@
{
global $config;
$fout = fopen("/usr/local/etc/raddb/users","w");
+ fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n");
if($config['installedpackages']['freeradius']['config'] != "") {
foreach($config['installedpackages']['freeradius']['config'] as $rowhelper) {
fwrite($fout, $rowhelper['username'] . " User-Password == \"" . $rowhelper['password'] . "\"\n");
diff --git a/packages/freeradiusclients.xml b/packages/freeradiusclients.xml
index 198deaa5..b1fbcbf0 100644
--- a/packages/freeradiusclients.xml
+++ b/packages/freeradiusclients.xml
@@ -61,6 +61,7 @@
function sync_package() {
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) {
diff --git a/packages/freeradiussettings.xml b/packages/freeradiussettings.xml
index 423332b0..5ef05756 100644
--- a/packages/freeradiussettings.xml
+++ b/packages/freeradiussettings.xml
@@ -36,6 +36,7 @@
function sync_package() {
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'];
diff --git a/packages/ifstated.xml b/packages/ifstated.xml
index 1e57ce81..1c1dfecd 100644
--- a/packages/ifstated.xml
+++ b/packages/ifstated.xml
@@ -71,6 +71,7 @@
global $config;
$fout = fopen("/usr/local/etc/ifstated.conf","w");
if($config['installedpackages']['ifstated']['config'] != "") {
+ fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n");
fwrite($fout, "init-state " . $_POST['initstate'] . "\n\n");
fwrite($fout, "carp_up = \"((carp0 link up) and (carp1 link up))\"\ncarp_down = \"((! carp0 link up) and (! carp1 link up))\"\ncarp_sync= \"((carp0 link up and carp1 link up) or ((!carp0 link up) and (!carp1 link up)))\"\n\n");
fwrite($fout, "net = '( \"ping -q -c 1 -t 1 " . $_POST['exttestip'] . " > /dev/null\" every 10 and \"ping -q -c 1 -t 1 " . $_POST['inttestip'] . " > /dev/null\" every 10)'\n\n");
diff --git a/packages/iperfserver.xml b/packages/iperfserver.xml
index 19a3dc4d..c779d054 100644
--- a/packages/iperfserver.xml
+++ b/packages/iperfserver.xml
@@ -4,6 +4,12 @@
<title>iperf: Server</title>
<donotsave>true</donotsave>
<preoutput>yes</preoutput>
+ <menu>
+ <name>iperf</name>
+ <tooltiptext>Run iperf in client or server mode.</tooltiptext>
+ <section>Diagnostics</section>
+ <configfile>iperf.xml</configfile>
+ </menu>
<tabs>
<tab>
<text>Client</text>