From a67b3e2dc53d24c7a25c4f053c4ae2e6368da1b0 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 19 Oct 2014 14:01:48 +0200 Subject: [PATCH] guardian.cgi: Remove code for options which have been dropped from guardian. Guardian does not longer require the information for the red interface from the configfile. Guardian does not longer support a targetfile. Signed-off-by: Stefan Schantl --- html/cgi-bin/guardian.cgi | 8 -------- 1 file changed, 8 deletions(-) diff --git a/html/cgi-bin/guardian.cgi b/html/cgi-bin/guardian.cgi index e6bd57b1b1..54921c2da7 100644 --- a/html/cgi-bin/guardian.cgi +++ b/html/cgi-bin/guardian.cgi @@ -44,9 +44,6 @@ my %cgiparams=(); # Path to the guardian.ignore file. my $ignorefile ='/var/ipfire/guardian/guardian.ignore'; -# Path to the guardian.target file. -my $targetfile ='/var/ipfire/guardian/guardian.ignore'; - our %netsettings = (); &General::readhash("${General::swroot}/ethernet/settings", \%netsettings); @@ -592,13 +589,9 @@ sub BuildConfiguration() { # We set this to 1 (enabled) to prevent guardian from blocking the ISP gateway. my $HostGatewayByte = "1"; - # Grab interface of red network zone. - my $red_interface = &General::get_red_interface(); - # Open configfile for writing. open(FILE, ">$configfile"); - print FILE "Interface $red_interface\n"; print FILE "EnableSnortMonitoring $settings{'GUARDIAN_ENABLE_SNORT'}\n"; print FILE "EnableSSHMonitoring $settings{'GUARDIAN_ENABLE_SSH'}\n"; print FILE "EnableHTTPDMonitoring $settings{'GUARDIAN_ENABLE_HTTPD'}\n"; @@ -606,7 +599,6 @@ sub BuildConfiguration() { print FILE "LogFile $settings{'GUARDIAN_LOGFILE'}\n"; print FILE "AlertFile $settings{'GUARDIAN_SNORT_ALERTFILE'}\n"; print FILE "IgnoreFile $ignorefile\n"; - print FILE "TargetFile $targetfile\n"; print FILE "TimeLimit $settings{'GUARDIAN_BLOCKTIME'}\n"; close(FILE); -- 2.39.2