Project

General

Profile

Actions

Bug #9327

closed

Using the character "¤" in OpenVPN password field creates invalid config.xml

Added by Mikael Östergren almost 3 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
OpenVPN
Target version:
Start date:
02/15/2019
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:
All

Description

Hi!
Maybe you guys want to know about this one. First post for me to this bugtracker. Hope I'm doing things right here.

Using the character "¤" in OpenVPN password field creates invalid config.xml

(¤)

Error messages produced:

Feb 14 23:26:11     php-fpm         /vpn_openvpn_client.php: New alert found: pfSense is restoring the configuration /cf/conf/backup/config-1550183040.xml
Feb 14 23:26:11     php-fpm         /vpn_openvpn_client.php: pfSense is restoring the configuration /cf/conf/backup/config-1550183040.xml
Feb 14 23:26:11     php-fpm         /vpn_openvpn_client.php: XML error: Undeclared entity error at line 3461 in /conf/config.xml

config.xml.bad

<auth_pass>zYdfrJn&curren;bE</auth_pass>

Heads up is that the OpenVPN client#.conf and related files are created /var/etc/openvpn and used by the OpenVPN, so you got a connection which is active without seening it under OpenVPN/Client or Status/OpenVPN.

Skipping the odd character does make it work as it should.

Made a post in the forum first.
https://forum.netgate.com/topic/140616/adding-client-configuration-results-in-automatic-restored-config-added-logs-show-connection

Actions

Also available in: Atom PDF