summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-03-08 22:35:54 +0000
committerErmal <eri@pfsense.org>2011-03-08 22:35:54 +0000
commitfdc0e920cc80c772616e30051a8661811208f8c9 (patch)
treee04ac5ab5ea204dc5187baa1d578941bd305358b /etc/inc
parent01890f6a95a28f3ea370a598858ea7c66d37a2e6 (diff)
downloadpfsense-fdc0e920cc80c772616e30051a8661811208f8c9.zip
pfsense-fdc0e920cc80c772616e30051a8661811208f8c9.tar.gz
Add localhost to be natted automagically from auto-generated nat rules. This simplifies loadbalancing from the host itself.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 18428fc..bcbe3ec 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1351,6 +1351,7 @@ function filter_nat_rules_generate() {
}
}
$natrules .= "\n# Subnets to NAT \n";
+ $tonathosts .= "127.0.0.0/8 ";
if($numberofnathosts > 4) {
$natrules .= "table <tonatsubnets> { {$tonathosts} }\n";
$macroortable = "<tonatsubnets>";
OpenPOWER on IntegriCloud