plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Wireguard configuration files are not updated on config.xml manual change

Open emaba opened this issue 2 years ago • 4 comments

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

  • [x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
  • [x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Describe the bug

Manually updating the config.xml file and restarting services or rebooting the machine doesn't update wireguard configuration files. Found on version 22.1.6

To Reproduce

Steps to reproduce the behavior:

  1. Login via SSH
  2. Manual edit /conf/config.xml in the wireguard section (i.e., update interface IP address)
  3. Force services reload or reboot the machine
  4. Wireguard configuration files are not updated causing issues.

Expected behavior

Manual updating /conf/config.xml I'm expecting that changes are reflected in all the system configurations.

Describe alternatives you considered

Changing from the web interface, or manually editing the wireguard configuration files solve the issue.

Screenshots

N/A

Relevant log files

N/A

Additional context

N/A

Environment

OPNsense 22.1.6 (amd64, OpenSSL).

emaba avatar Apr 17 '22 09:04 emaba

Restarting doesnt generate the config. You need to refresh UI and hit apply

mimugmail avatar Apr 17 '22 10:04 mimugmail

Restarting doesnt generate the config. You need to refresh UI and hit apply

But if you don't have web access, you can't fix it. There is no other way? Can't be fixed?

emaba avatar Apr 17 '22 23:04 emaba

configctl template reload OPNsense/Wireguard

Just a guess, not at a computer. Just google for similar syntax

mimugmail avatar Apr 18 '22 06:04 mimugmail

The only way this doesn't work after reboot is when the data is malformed. Check the logs.

fichtner avatar Apr 18 '22 07:04 fichtner

This issue has been automatically timed-out (after 180 days of inactivity).

For more information about the policies for this repository, please read https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md for further details.

If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.

OPNsense-bot avatar Oct 14 '22 08:10 OPNsense-bot