| Summary: | WireGuard CU200,201,203 - Import a Connection with multiple addresses results in an error Invalid Network | ||
|---|---|---|---|
| Product: | IPFire | Reporter: | iptom <tomphz> |
| Component: | --- | Assignee: | Michael Tremer <michael.tremer> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | Minor Usability | ||
| Priority: | - Unknown - | CC: | michael.tremer |
| Version: | 2 | ||
| Hardware: | unspecified | ||
| OS: | Unspecified | ||
The import issue also occurs in the Core-Update 203 Development Build: master/8024c29c Could you please confirm that this fixes the problem?
> https://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff;h=459e88ff5acbc0e6059665d6636a30445aa48c6b
(In reply to Michael Tremer from comment #3) > Could you please confirm that this fixes the problem? > > > https://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff;h=459e88ff5acbc0e6059665d6636a30445aa48c6b In the file `wireguard-functions.pl`, I made the recommended change shown below # AllowedIPs } elsif ($key eq "AllowedIPs") { my @networks = split(/\s*,\s*/, $val); Following the above change, the import completed without any errors being reported. Tested on Core-Update 203 Development Build: master/4b639c7e Best Regards Core Update 203 has been released:
> https://www.ipfire.org/blog/ipfire-2-29-core-update-203-released
|
When importing a configuration file containing multiple IP addresses, e.g. AllowedIPs = 10.168.12.0/24, 10.168.13.0/24, 10.168.14.0/24 an error occurs Oops, something went wrong... Invalid Network 10.168.13.0/24 Invalid Network 10.168.14.22/32 Once the spaces between the addresses have been removed, e.g. AllowedIPs = 10.168.12.0/24,10.168.13.0/24,10.168.14.0/24 the import proceeds without errors. The configuration file was generated when the N2N connection was created on IPFire. Regards