summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-15 19:18:13 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-15 19:18:13 +0000
commitf38dea081471248addbd737f1cabd7975594fd9e (patch)
treee930f607b877ee34278cc8297b6992637d0d17fd /etc
parentade51705571c70b5c066dbe7751c179bc81c4c49 (diff)
downloadpfsense-f38dea081471248addbd737f1cabd7975594fd9e.zip
pfsense-f38dea081471248addbd737f1cabd7975594fd9e.tar.gz
Add reply-to (aka return gateway) rule support for multiple WAN support.
And the crowd goes nuts!
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index db1e47d..451389f 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1353,6 +1353,10 @@ EOD;
$line .= "on \$" . $interface . " ";
}
+ if($rule['returngateway'] <> "") {
+ $line .= "reply-to (" . $rule['returngateway'] . ") ";
+ }
+
if (isset($rule['protocol'])) {
if($rule['protocol'] == "tcp/udp")
$line .= "proto { tcp udp } ";
OpenPOWER on IntegriCloud