From 841f013e264d21dd6d3a725325623dbc21aac4f9 Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Sun, 20 Jun 2010 20:15:08 +0200 Subject: [PATCH] Fixed guardian gateway detection - this fixes bug #0000665 --- config/guardian/guardian.pl | 5 +++-- lfs/guardian | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/guardian/guardian.pl b/config/guardian/guardian.pl index 5c421868b9..b5c3f9c16a 100644 --- a/config/guardian/guardian.pl +++ b/config/guardian/guardian.pl @@ -34,12 +34,13 @@ if ($hostipaddr !~ /\d+\.\d+\.\d+\.\d+/) { $networkaddr = $hostipaddr; $networkaddr =~ s/\d+$/0/; -$gatewayaddr = $hostipaddr; -$gatewayaddr =~ s/\d+$/$hostgatewaybyte/; +$gatewayaddr = `cat /var/ipfire/red/remote-ipaddress 2>/dev/null`; $broadcastaddr = $hostipaddr; $broadcastaddr =~ s/\d+$/255/; &build_ignore_hash; +print "My gatewayaddess is: $gatewayaddr\n"; + # This is the target hash. If a packet was destened to any of these, then the # sender of that packet will get denied, unless it is on the ignore list.. diff --git a/lfs/guardian b/lfs/guardian index f3118f63be..e08a469de8 100644 --- a/lfs/guardian +++ b/lfs/guardian @@ -30,7 +30,7 @@ THISAPP = guardian-$(VER) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = guardian -PAK_VER = 3 +PAK_VER = 4 DEPS = "" -- 2.39.2