Bug #4474


IP address change triggers reload of all packages

Added by Cullen Trey about 8 years ago. Updated about 6 years ago.

Package System
Target version:
Start date:
Due date:
% Done:


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



When OpenVPN restarts and the clients or servers are assigned to interfaces, the packages are reloaded. They are even reloaded when the ip has not been changed at all...
Here the log showing two things. First, the real interface: ovpnc1 is known the the newwanip "process". Secound, the ip change of -> restarts packages.

Feb 25 21:27:28 php-fpm66452: /rc.newwanip: Creating rrd update script
Feb 25 21:27:29 php-fpm37734: /rc.linkup: Ignoring link event for ovpn interface
Feb 25 21:27:29 php-fpm37734: /rc.newwanip: rc.newwanip: Info: starting on ovpnc1.
Feb 25 21:27:29 php-fpm37734: /rc.newwanip: rc.newwanip: on (IP address: 10.0.8.xx) (interface: OVPNxxx1[opt2]) (real interface: ovpnc1).
Feb 25 21:27:29 check_reload_status: Reloading filter
Feb 25 21:27:30 php-fpm66452: /rc.newwanip: pfSense package system has detected an IP change or dynamic WAN reconnection - -> - Restarting packages.
Feb 25 21:27:30 check_reload_status: Starting packages


skip_restart_for_routing_packages-2.3.2.tar (5 KB) skip_restart_for_routing_packages-2.3.2.tar Skip restart for 2.3.2 Daniel Grob, 02/13/2017 07:14 AM
Actions #1

Updated by Phillip Davis about 8 years ago

There are some packages that might like to know about interface state changes, including changes where the interface "goes away and comes back" in some way, even though the IP address... come back the same as previous. In the current system there is no standard interface to notify packages of changes, thus the brute-force package restart.
I seems to me it would be good to provide some better standard package notification method that can pass to packages some detail of the event and then each package can choose to ignore the event, restart completely or reload its config or do whatever it thinks appropriate.

Actions #2

Updated by Chris Buechler about 7 years ago

  • Subject changed from OpenVPN IP adress change triggers package reload to IP address change triggers reload of all packages
  • Category set to Package System
  • Status changed from New to Confirmed
  • Affected Version set to All

as Phil noted it's not as simple as not doing this, as that breaks other situations that require it.

Actions #3

Updated by Daniel Grob about 6 years ago

User "Kill Bill" wrote a patch that disables this behaviour for 2.2.2 and linked it in

This is the same code, just ported to 2.3.2.

Actions #4

Updated by Kill Bill about 6 years ago

Just FYI: That's not my patch, see the URL :)


Also available in: Atom PDF