]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
guardian: Drop last parts for block_interface.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 9 Aug 2014 08:10:54 +0000 (10:10 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 9 Aug 2014 08:10:54 +0000 (10:10 +0200)
Drop the last code parts for block_interface.

config/guardian/guardian.pl

index 3fb8494087d281f0f3ebd7d619ee3c72afe3717d..75982ef9a1fdf2229db450ce094bb2971c544762 100644 (file)
@@ -363,9 +363,6 @@ sub load_conf {
                                $interface = `cat /var/ipfire/ethernet/settings | grep RED_DEV | cut -d"=" -f2`;
                        }
                }
-               if (/BlockInterface\s+(.*)/) {
-                       $block_interface = $1;
-               }
                if (/AlertFile\s+(.*)/) {
                        $alert_file = $1;
                }
@@ -386,10 +383,6 @@ sub load_conf {
                }
        }
        
-       if ($block_interface eq "") {
-               &write_log ("Warning! BlockInterface is undefined.. using Interface: $interface\n");
-               $block_interface = $interface;
-       }
        if ($alert_file eq "") {
                &write_log ("Warning! AlertFile is undefined.. Assuming /var/log/snort.alert\n");
                $alert_file="/var/log/snort.alert";