mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add option to kill all states on IP change, currently a hidden option for more testing. ticket #1629
This commit is contained in:
parent
fd057a5676
commit
569e2fdfac
@ -185,6 +185,12 @@ if(is_array($config['gifs']['gif'])){
|
||||
* could be failing back in which case we need to switch IPs back anyhow.
|
||||
*/
|
||||
if (!is_ipaddr($oldip) || $curwanip != $oldip || !is_ipaddrv4($config['interfaces'][$interface]['ipaddr'])) {
|
||||
/* option to flush state table on IP change */
|
||||
if (isset($config['system']['ip_change_kill_states'])) {
|
||||
log_error("Killing all states post-IP change.");
|
||||
filter_flush_state_table();
|
||||
}
|
||||
|
||||
/* reconfigure static routes (kernel may have deleted them) */
|
||||
system_routing_configure($interface);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user