summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-01-22 21:31:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-01-22 21:31:41 +0000
commit276a350f686140dc4078ab5af177cbfc0bfc4102 (patch)
tree6c35d6878ea1ab07ee4037aaada5a78c734b68e9
parent555a00ac9da1048cec0420d58b04c423bacbaf27 (diff)
downloadpfsense-276a350f686140dc4078ab5af177cbfc0bfc4102.zip
pfsense-276a350f686140dc4078ab5af177cbfc0bfc4102.tar.gz
When changing the IP address, reassign all static routes.
Tested-by: Gary Buckmaster via ORU
-rwxr-xr-xusr/local/www/interfaces.php7
-rwxr-xr-xusr/local/www/interfaces_lan.php3
-rwxr-xr-xusr/local/www/interfaces_opt.php4
-rwxr-xr-xusr/local/www/interfaces_wan.php7
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
OpenPOWER on IntegriCloud