summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-18 18:45:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-18 18:45:41 +0000
commit007be4f3aa7e349e9fb536fc4ec3df09af246933 (patch)
tree5fb7968cc99f3bbd96205298e9ab990b0835843f /etc
parenta3900bf025adafa8c2cec7dcf201c14f6161c9dc (diff)
downloadpfsense-007be4f3aa7e349e9fb536fc4ec3df09af246933.zip
pfsense-007be4f3aa7e349e9fb536fc4ec3df09af246933.tar.gz
* Remove return gateway from the rules section
* Add a gateway option to the optional interfaces * Use new gateway in filter.inc when creating the rules if its defined
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc5
-rw-r--r--etc/inc/pfsense-utils.inc2
2 files changed, 4 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index be55b55..d5e5e66 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1350,7 +1350,8 @@ EOD;
$line .= "on \$" . $interface . " ";
}
- if($rule['returngateway'] <> "") {
+ $return_gateway = $config['interfaces'][$rule['interface']]['gateway'];
+ if($return_gateway <> "") {
$return_interface = filter_translate_type_to_real_interface($interface);
$line .= "reply-to (" . $return_interface . " " . $rule['returngateway'] . ") ";
}
@@ -1674,4 +1675,4 @@ function create_firewall_outgoing_rules_to_itself() {
return $rule;
}
-?>
+?> \ No newline at end of file
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index dea186f..616481d 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -938,4 +938,4 @@ function make_dirs($path, $mode = 0755)
return is_dir($path) || (make_dirs(dirname($path), $mode) && safe_mkdir($path, $mode));
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud