mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Firewall: Allow DNAT with target firewall
This commit is contained in:
committed by
Michael Tremer
parent
c71499d8d9
commit
896eb2d693
@@ -584,8 +584,10 @@ sub checktarget
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
$errormessage=$Lang::tr{'fwdfw dnat error'}."<br>";
|
if ($fwdfwsettings{'grp2'} ne 'ipfire'){
|
||||||
return $errormessage;
|
$errormessage=$Lang::tr{'fwdfw dnat error'}."<br>";
|
||||||
|
return $errormessage;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($fwdfwsettings{'tgt_addr'} eq $fwdfwsettings{$fwdfwsettings{'grp2'}} && $fwdfwsettings{'tgt_addr'} ne ''){
|
if ($fwdfwsettings{'tgt_addr'} eq $fwdfwsettings{$fwdfwsettings{'grp2'}} && $fwdfwsettings{'tgt_addr'} ne ''){
|
||||||
@@ -2564,8 +2566,7 @@ END
|
|||||||
my @src_addresses=&fwlib::get_addresses(\%$hash,$key,'src');
|
my @src_addresses=&fwlib::get_addresses(\%$hash,$key,'src');
|
||||||
my @nat_ifaces;
|
my @nat_ifaces;
|
||||||
foreach my $val (@src_addresses){
|
foreach my $val (@src_addresses){
|
||||||
my ($ip,$sub)=split("/",$val);
|
push (@nat_ifaces,&fwlib::get_nat_address($$hash{$key}[29],$val));
|
||||||
push (@nat_ifaces,&fwlib::get_nat_address($$hash{$key}[29],$ip));
|
|
||||||
}
|
}
|
||||||
@nat_ifaces=&del_double(@nat_ifaces);
|
@nat_ifaces=&del_double(@nat_ifaces);
|
||||||
$natstring = join(', ', @nat_ifaces);
|
$natstring = join(', ', @nat_ifaces);
|
||||||
|
|||||||
Reference in New Issue
Block a user