Project

General

Profile

Actions

Bug #11254

closed

Some OpenVPN configuration files remain after deleting an instance

Added by Viktor Gurov almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Viktor Gurov
Category:
OpenVPN
Target version:
Start date:
01/16/2021
Due date:
% Done:

0%

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

Description

If you delete OpenVPN Server/Client in the WebGUI, no all config files/directories will be deleted:

/var/etc/openvpn/client3/
/var/etc/openvpn/client3/ca
/var/etc/openvpn/client3/ca/791c09ae.0
/var/etc/openvpn/client3/csc
/var/etc/openvpn/server3/
/var/etc/openvpn/server3/ca
/var/etc/openvpn/server3/ca/791c09ae.0
/var/etc/openvpn/server3/csc

Actions #1

Updated by Viktor Gurov almost 4 years ago

  • Subject changed from not all config files on instance deletion to not all config files are deleted on instance deletion
Actions #3

Updated by Jim Pingle almost 4 years ago

  • Subject changed from not all config files are deleted on instance deletion to Some OpenVPN configuration files remain after deleting an instance
  • Status changed from New to Pull Request Review
  • Target version set to 2.5.0
Actions #4

Updated by Renato Botelho almost 4 years ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Viktor Gurov

PR has been merged. Thanks!

Actions #5

Updated by Danilo Zrenjanin almost 4 years ago

  • Status changed from Feedback to Resolved

Tested on the latest release. It works as expected. Ticket resolved.

Actions #6

Updated by Viktor Gurov almost 4 years ago

  • Status changed from Resolved to New
  • Priority changed from Low to Normal

sometime for some reason it shows PHP error:

[04-Feb-2021 13:01:43 Europe/Moscow] PHP Warning:  rmdir(/var/etc/openvpn/server1): Directory not empty in /etc/inc/pfsense-utils.inc on line 1017

fix:
https://gitlab.netgate.com/pfSense/pfSense/-/merge_requests/122

Actions #7

Updated by Renato Botelho almost 4 years ago

  • Status changed from New to Pull Request Review
Actions #8

Updated by Renato Botelho almost 4 years ago

  • Status changed from Pull Request Review to Feedback

Merged

Actions #9

Updated by Max Leighton almost 4 years ago

In the February 4 image of 2.5, I can no longer get the PHP crash after deleting the server/client instance of OpenVPN.

I still have directories the following directories in /var/etc/openvpn:

/var/etc/openvpn/server1
/var/etc/openvpn/server1/csc
/var/etc/openvpn/client2
/var/etc/openvpn/client2/csc

These are empty directories which will stay until the firewall is rebooted. Following a reboot, /var/etc/openvpn is completely empty.

If that is the expected behavior, then this can be resolved. I have not been able to reproduce the PHP crash since upgrading to the February 4 image.

Actions #10

Updated by Viktor Gurov almost 4 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF