summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-10-28 13:30:29 -0500
committerChris Buechler <cmb@pfsense.org>2014-10-28 13:31:51 -0500
commit569e2fdfac48194b3be5cd9cf10042d9f90d60a5 (patch)
tree8ccb26eeaf64c82772108424f31dab1189edb7f5 /etc
parentfd057a5676dc122a5bd493b904f08924f03ca9f0 (diff)
downloadpfsense-569e2fdfac48194b3be5cd9cf10042d9f90d60a5.zip
pfsense-569e2fdfac48194b3be5cd9cf10042d9f90d60a5.tar.gz
Add option to kill all states on IP change, currently a hidden option for more testing. ticket #1629
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.newwanip6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 46c41fe..30ec6ee 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -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);
OpenPOWER on IntegriCloud