mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 18:32:57 +02:00
Forward Firewall: set standard rules for blue in mode 2
This commit is contained in:
committed by
Michael Tremer
parent
e974ced8c5
commit
6adcf1569c
@@ -731,9 +731,9 @@ sub checktarget
|
||||
$ip=&General::ip2dec($ip);
|
||||
$ip=&General::dec2ip($ip);
|
||||
|
||||
#check if net
|
||||
#check if net or broadcast
|
||||
my @tmp= split (/\./,$ip);
|
||||
if ($tmp[3] eq "0")
|
||||
if ($tmp[3] eq "0" || ($tmp[3] eq "255"))
|
||||
{
|
||||
$errormessage=$Lang::tr{'fwhost err hostip'}."<br>";
|
||||
}
|
||||
@@ -876,7 +876,7 @@ sub checkrule
|
||||
$hint.=$Lang::tr{'fwdfw hint ip2'}." Source: $networkip1/$scidr Target: $networkip2/$tcidr<br>";
|
||||
}
|
||||
}else{
|
||||
if ( &General::IpInSubnet($networkip2,$sip,&General::iporsubtodec($scidr)) && $tcidr ne '32' ){
|
||||
if ( &General::IpInSubnet($networkip2,$sip,&General::iporsubtodec($scidr)) ){
|
||||
$errormessage.=$Lang::tr{'fwdfw err samesub'};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user