diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2012-10-01 14:38:03 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2012-10-01 14:38:03 +0200 |
commit | d8cdfd3e34fd57bfde7061620007a712321c4d12 (patch) | |
tree | b41e4bbd5ba58ca0595058725856554f2b768379 /etc/inc/interfaces.inc | |
parent | 90763c7fabf9dbcba50dcb15748c7c6d5dc148ec (diff) | |
parent | 19d61d2731c1fb0baf877632e8e482bf3ff57bdd (diff) | |
download | pfsense-d8cdfd3e34fd57bfde7061620007a712321c4d12.zip pfsense-d8cdfd3e34fd57bfde7061620007a712321c4d12.tar.gz |
Merge branch 'master' of git://github.com/bsdperimeter/pfsense
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index a7af3ce..551d833 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1153,6 +1153,12 @@ function interface_bring_down($interface = "wan", $destroy = false) { break; } + $old_router = trim(file_get_contents("{$g['tmp_path']}/{$realif}_router")); +// log_error("Checking for old router states: {$g['tmp_path']}/{$realif}_router = {$old_router}"); + if (!empty($old_router)) { + log_error("Clearing states to old gateway {$old_router}."); + mwexec("/sbin/pfctl -b 0.0.0.0/32 -b {$old_router}/32"); + } /* remove interface up file if it exists */ unlink_if_exists("{$g['tmp_path']}/{$realif}up"); |