]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
guardian.cgi: Remove code for options which have been dropped from guardian.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 19 Oct 2014 12:01:48 +0000 (14:01 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 29 Jul 2016 11:17:55 +0000 (13:17 +0200)
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 <stefan.schantl@ipfire.org>
html/cgi-bin/guardian.cgi

index e6bd57b1b1e507712fad5307fe654cda0c300bb8..54921c2da79ef32a8f3280a820245cf29ec3f0b8 100644 (file)
@@ -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);