Project

General

Profile

Actions

Bug #11886

open

WireGuard: PHP error in vpn_wg_peers_edit.php

Added by Steve Wheeler 5 months ago. Updated 4 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
WireGuard
Target version:
-
Start date:
05/04/2021
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
2.6.x
Affected Plus Version:
Affected Architecture:
All

Description

When setting the allowed IPs on a peer as 0.0.0.0/0 only the following error is generated:

[04-May-2021 15:11:07 Europe/London] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/www/wg/vpn_wg_peers_edit.php on line 259

The peer config I used that triggered it is:

            <peers>
                <item>
                    <enabled>yes</enabled>
                    <tun>tun_wg0</tun>
                    <descr><![CDATA[Netgate Austin]]></descr>
                    <endpoint>Our_test_server_here</endpoint>
                    <port></port>
                    <persistentkeepalive>25</persistentkeepalive>
                    <publickey>key_was_here</publickey>
                    <presharedkey></presharedkey>
                    <allowedips>0.0.0.0/0</allowedips>
                </item>
            </peers>

Tested in:

21.05-DEVELOPMENT (amd64)
built on Tue May 04 01:03:49 EDT 2021
FreeBSD 12.2-STABLE

WireGuard package 0.0.8

Actions #1

Updated by Christian McDonald 5 months ago

This was resolved after the initial PR. Should be fixed in the next revision

Actions #3

Updated by Jim Pingle 4 months ago

  • Status changed from New to Feedback
  • Target version deleted (Future)
Actions

Also available in: Atom PDF