]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Fixed guardian gateway detection - this fixes bug #0000665
authorChristian Schmidt <christian.schmidt@ipfire.org>
Sun, 20 Jun 2010 18:15:08 +0000 (20:15 +0200)
committerChristian Schmidt <christian.schmidt@ipfire.org>
Sun, 20 Jun 2010 18:15:08 +0000 (20:15 +0200)
config/guardian/guardian.pl
lfs/guardian

index 5c421868b9bebb25faab1044541dfee9f206462a..b5c3f9c16ae78c3499b5c2f062396f6ffd784177 100644 (file)
@@ -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..
 
index f3118f63beb46265568cd3d9c7f81431a1a21d0f..e08a469de8cb5320f5fccf778d86b50bfcddf411 100644 (file)
@@ -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       = ""