Actions
Regression #14781
closed
LP
JP
OpenVPN resync for a specific interface may unintentionally restart OpenVPN instances on unrelated interfaces
Regression #14781:
OpenVPN resync for a specific interface may unintentionally restart OpenVPN instances on unrelated interfaces
Start date:
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
23.09
Release Notes:
Force Exclusion
Affected Version:
Affected Architecture:
Description
Tested on
23.09-DEVELOPMENT (amd64)
built on Thu Sep 07 06:05:43 UTC 2023
FreeBSD 14.0-ALPHA2
If you have an interface with the gateway assigned the system will terminal the OpenVPN on every link event. Disabling Gateway monitoring or Gateway monitoring actions doesn't help.
for example, I have an interface called AH with the gateway(this is a LAN interface purpose for routing), and I disable it.
It will produce the following log:
*Sep 14 11:30:49 kernel ovpnc3: link state changed to UP* Sep 14 11:30:49 check_reload_status 332 rc.newwanip starting ovpnc3 Sep 14 11:30:48 kernel ovpn1: changing name to 'ovpnc3' Sep 14 11:30:48 php-fpm 292 /rc.start_packages: Restarting/Starting all packages. Sep 14 11:30:47 check_reload_status 332 Starting packages Sep 14 11:30:47 php-fpm 10907 /interfaces.php: Creating rrd update script Sep 14 11:30:47 php-fpm 10907 /interfaces.php: Ignoring IPsec reload since there are no tunnels on interface opt5 Sep 14 11:30:46 check_reload_status 332 Reloading filter *Sep 14 11:30:46 php-fpm 10907 OpenVPN PID written: 57788* Sep 14 11:30:46 php-fpm 74406 /rc.openvpn: OpenVPN: One or more OpenVPN tunnel endpoints may have changed IP addresses. Reloading endpoints that may use HEV6_TUNNELV6. Sep 14 11:30:46 php-fpm 74406 /rc.openvpn: Static Routes: Gateway IP could not be found for 172.21.100.0/24 Sep 14 11:30:46 php-fpm 74406 /rc.openvpn: route_add_or_change: Invalid gateway and/or network interface ipsec3 Sep 14 11:30:45 check_reload_status 332 Reloading filter *Sep 14 11:30:44 php-fpm 10907 OpenVPN terminate old pid: 52182* Sep 14 11:30:43 check_reload_status 332 Reloading filter Sep 14 11:30:43 check_reload_status 332 Restarting OpenVPN tunnels/interfaces Sep 14 11:30:43 check_reload_status 332 Restarting IPsec tunnels Sep 14 11:30:43 check_reload_status 332 updating dyndns HEV6_TUNNELV6 *Sep 14 11:30:43 php-fpm 10907 /interfaces.php: Resyncing OpenVPN instances for interface AH.* Sep 14 11:30:41 php-fpm 10907 /interfaces.php: Starting DHCP6 client for interfaces pppoe0 in DHCP6 without RA mode Sep 14 11:30:41 php-fpm 10907 /interfaces.php: Accept router advertisements on interface igb0
It doesn't behave this way on 23.05.1 and 23.01
Actions