Project

General

Profile

Actions

Bug #11886

closed

WireGuard: PHP error in vpn_wg_peers_edit.php

Added by Steve Wheeler almost 3 years ago. Updated over 2 years ago.

Status:
Resolved
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 almost 3 years ago

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

Actions #3

Updated by Jim Pingle almost 3 years ago

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

Updated by Kris Phillips over 2 years ago

  • Status changed from Feedback to Resolved

No longer able to reproduce this in 22.01 of pfSense Plus. Closing as Resolved.

Actions

Also available in: Atom PDF