diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-01-22 21:31:41 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-01-22 21:31:41 +0000 |
commit | 276a350f686140dc4078ab5af177cbfc0bfc4102 (patch) | |
tree | 6c35d6878ea1ab07ee4037aaada5a78c734b68e9 | |
parent | 555a00ac9da1048cec0420d58b04c423bacbaf27 (diff) | |
download | pfsense-276a350f686140dc4078ab5af177cbfc0bfc4102.zip pfsense-276a350f686140dc4078ab5af177cbfc0bfc4102.tar.gz |
When changing the IP address, reassign all static routes.
Tested-by: Gary Buckmaster via ORU
-rwxr-xr-x | usr/local/www/interfaces.php | 7 | ||||
-rwxr-xr-x | usr/local/www/interfaces_lan.php | 3 | ||||
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 4 | ||||
-rwxr-xr-x | usr/local/www/interfaces_wan.php | 7 |
4 files changed, 19 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index fe065f5..7ad43a4 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -510,6 +510,7 @@ if ($_POST) { config_unlock(); } + $retval = 0; $savemsg = get_std_save_message($retval); @@ -1035,7 +1036,11 @@ if ($_POST) { /* sync filter configuration */ filter_configure(); + + /* set up static routes */ + system_routing_configure(); + } } -?> +?>
\ No newline at end of file diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php index 83c6ff9..7f71ec6 100755 --- a/usr/local/www/interfaces_lan.php +++ b/usr/local/www/interfaces_lan.php @@ -268,6 +268,9 @@ if ($_POST['apply'] <> "") { /* sync filter configuration */ filter_configure(); + + /* set up static routes */ + system_routing_configure(); if(file_exists($d_landirty_path)) unlink($d_landirty_path); diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php index ac22c64..e331279 100755 --- a/usr/local/www/interfaces_opt.php +++ b/usr/local/www/interfaces_opt.php @@ -460,6 +460,10 @@ if ($_POST) { /* sync filter configuration */ filter_configure(); + + /* set up static routes */ + system_routing_configure(); + } } ?>
\ No newline at end of file diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php index fe065f5..7ad43a4 100755 --- a/usr/local/www/interfaces_wan.php +++ b/usr/local/www/interfaces_wan.php @@ -510,6 +510,7 @@ if ($_POST) { config_unlock(); } + $retval = 0; $savemsg = get_std_save_message($retval); @@ -1035,7 +1036,11 @@ if ($_POST) { /* sync filter configuration */ filter_configure(); + + /* set up static routes */ + system_routing_configure(); + } } -?> +?>
\ No newline at end of file |