4095) $input_errors[] = gettext("The value for Memory Cap must be an integer between 1 and 4095."); // if no errors write to conf if (!$input_errors) { $natent['reputation_preproc'] = $_POST['reputation_preproc'] ? 'on' : 'off'; $natent['iprep_scan_local'] = $_POST['iprep_scan_local'] ? 'on' : 'off'; $natent['iprep_memcap'] = $_POST['iprep_memcap']; $natent['iprep_priority'] = $_POST['iprep_priority']; $natent['iprep_nested_ip'] = $_POST['iprep_nested_ip']; $natent['iprep_white'] = $_POST['iprep_white']; $a_nat[$id] = $natent; write_config(); // Update the snort conf file for this interface $rebuild_rules = false; snort_generate_conf($a_nat[$id]); // Soft-restart Snort to live-load new variables snort_reload_config($a_nat[$id]); $pconfig = $natent; } else $pconfig = $_POST; } $if_friendly = convert_friendly_interface_to_friendly_descr($a_nat[$id]['interface']); $pgtitle = gettext("Snort: Interface {$if_friendly} IP Reputation Preprocessor"); include_once("head.inc"); ?>