arpwatch
arpwatch: Settings
2.1.a13
installedpackages->package->$packagename->configuration->settings
pkg_edit.php?xml=arpwatch.xml&id=0
arpwatch
arpwatch
Listening Interface
interface
Enter the desired listening interface here.
interfaces_selection
unlink_if_exists("/usr/local/etc/rc.d/arpwatch.sh");
function sync_package_arpwatch() {
conf_mount_rw();
config_lock();
global $config;
$fout = fopen("/usr/local/etc/rc.d/arpwatch.sh","w");
fwrite($fout, "#!/bin/sh\n\n");
fwrite($fout, "# PACKAGE: Arpwatch\n");
fwrite($fout, "# EXECUTABLE: arpwatch\n");
fwrite($fout, "\n# This file was automatically generated by the pfSense\n# package management system.\n\n");
if(isset($config['installedpackages']['arpwatch']['config'])) {
$int = convert_friendly_interface_to_real_interface_name($config['installedpackages']['arpwatch']['config'][0]['interface']);
fwrite($fout, "/usr/local/sbin/arpwatch -d -i " . $int . " &\n\n");
}
chmod("/usr/local/etc/rc.d/arpwatch.sh", 0755);
fclose($fout);
conf_mount_ro();
config_unlock();
}
sync_package_arpwatch();
mwexec("/usr/bin/killall -HUP arpwatch");
mwexec("/usr/local/etc/rc.d/arpwatch.sh");