From: Christian Schmidt Date: Sun, 20 Jun 2010 18:15:08 +0000 (+0200) Subject: Fixed guardian gateway detection - this fixes bug #0000665 X-Git-Tag: v2.9-beta1~212 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=841f013e264d21dd6d3a725325623dbc21aac4f9;ds=sidebyside Fixed guardian gateway detection - this fixes bug #0000665 --- 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 = ""