From af4460ff3f18dff763e0a493ac71be37dd814435 Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Mon, 13 Jan 2014 10:51:45 -0500 Subject: Incorporate Ermal's comments -- use conf_mount_rw() only where needed. --- config/snort/snort_define_servers.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config/snort/snort_define_servers.php') diff --git a/config/snort/snort_define_servers.php b/config/snort/snort_define_servers.php index 7b729208..7c057b19 100755 --- a/config/snort/snort_define_servers.php +++ b/config/snort/snort_define_servers.php @@ -131,13 +131,14 @@ if ($_POST) { $a_nat[$id] = $natent; - conf_mount_rw(); write_config(); /* Update the snort conf file for this interface. */ $rebuild_rules = false; snort_generate_conf($a_nat[$id]); - conf_mount_ro(); + + /* Soft-restart Snort to live-load new variables. */ + snort_reload_config($a_nat[$id]); /* after click go to this page */ header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); -- cgit v1.2.3