mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
firewall: Support multiple subnets per IPsec tunnel
Fixes #10929 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -391,8 +391,9 @@ sub get_address
|
||||
# IPsec networks.
|
||||
} elsif ($key ~~ ["ipsec_net_src", "ipsec_net_tgt", "IpSec Network"]) {
|
||||
my $network_address = &get_ipsec_net_ip($value, 11);
|
||||
if ($network_address) {
|
||||
push(@ret, [$network_address, ""]);
|
||||
my @nets = split(/\|/, $network_address);
|
||||
foreach my $net (@nets) {
|
||||
push(@ret, [$net, ""]);
|
||||
}
|
||||
|
||||
# The firewall's own IP addresses.
|
||||
|
||||
Reference in New Issue
Block a user