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