summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-03-06 19:46:42 +0000
committerErmal Luçi <eri@pfsense.org>2008-03-06 19:46:42 +0000
commit973b30392a5a4725c1d1bdff58001aedc32616ff (patch)
tree330444bf38bc0ff5eab7a44fc25c7e66b5e95b19 /etc
parent8be2d6d3dd8c134c850aec37a58e923a68f3ef3f (diff)
downloadpfsense-973b30392a5a4725c1d1bdff58001aedc32616ff.zip
pfsense-973b30392a5a4725c1d1bdff58001aedc32616ff.tar.gz
Remove duplicated entry for generating binat rules.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc19
1 files changed, 0 insertions, 19 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 2bb8a63..092f09b 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -645,25 +645,6 @@ function filter_nat_rules_generate() {
}
}
- /* any 1:1 mappings? */
- if (is_array($config['nat']['onetoone'])) {
- $natrules .= "\n";
- foreach ($config['nat']['onetoone'] as $natent) {
- if (!is_numeric($natent['subnet']))
- $sn = 32;
- else
- $sn = $natent['subnet'];
-
- if (!$natent['interface'] || ($natent['interface'] == "wan"))
- $natif = $wanif;
- else
- $natif = $config['interfaces'][$natent['interface']]['if'];
-
- if($natent['interface'])
- $natrules .= "binat on $natif from {$natent['internal']}/{$sn} to any -> {$natent['external']}/{$sn}\n";
- }
- }
-
$natrules .= "\n# Outbound NAT rules\n";
/* outbound rules - advanced or standard */
OpenPOWER on IntegriCloud