OpenVPN Restarting more than it should
-
I think there is a bug with the logic rc.newwanip script when it comes to the OpenVPN Server.
Current Configuration
PFSense version 2.7.0
Wan1 = Static IP address with a 13 IP address block
Each public IP is added as a Virtual IP address
Wan2 = a dynamic IP via a cellular modem.
Gateway group is setup to failover to the Wan2 in the event Wan1 fails.
OpenVPN server is set as a Virtual IP on the Wan1 interface.
The behavior that I think is a bug:
In the event Wan1 losses connection and comes back online the OpenVPN server stays running without restarting. However, if Wan2 loses connection and comes back online the system logs show that the OpenVPN server is terminated and reloaded. If the OpenVPN server is not linked to anything related to the Wan2 interface why would the OpenVPN server need to be rebooted?I think this situation is similar to https://redmine.pfsense.org/issues/11942
System Log items:
php-fpm[83287]: OpenVPN terminate old pid: 93421
kernel: ovpns1: link state changed to DOWN
check_reload_status[410]: Reloading filter
php-fpm[83287]: /rc.newwanip: dpinger: timeout while retrieving status for gateway WAN2_DHCP
kernel: ovpns1: link state changed to UP
php-fpm[83287]: OpenVPN PID written: 45300
check_reload_status[410]: Reloading filter
check_reload_status[410]: rc.newwanip starting ovpns1