mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
firewall: rules.pl: Catch invalid configurations.
This commit is contained in:
@@ -337,6 +337,11 @@ sub buildrules {
|
|||||||
|
|
||||||
# Use iptables DNAT
|
# Use iptables DNAT
|
||||||
} else {
|
} else {
|
||||||
|
if ($destination_is_firewall && !$destination) {
|
||||||
|
$destination = &fwlib::get_external_address();
|
||||||
|
}
|
||||||
|
next unless ($destination);
|
||||||
|
|
||||||
my ($dnat_address, $dnat_mask) = split("/", $destination);
|
my ($dnat_address, $dnat_mask) = split("/", $destination);
|
||||||
@destination_options = ("-d", $dnat_address);
|
@destination_options = ("-d", $dnat_address);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user