diff options
-rw-r--r-- | etc/inc/filter.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index b11ea76..c857c74 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -286,6 +286,11 @@ function filter_nat_rules_generate() { $natrules = ""; + $natrules .= <<<EODR +# auto-proxy +rdr on $lanif proto tcp from any to any port 21 -> 127.0.0.1 port 8021 +EODR + /* any 1:1 mappings? */ if (is_array($config['nat']['onetoone'])) { foreach ($config['nat']['onetoone'] as $natent) { @@ -438,9 +443,6 @@ function filter_nat_rules_generate() { rdr on $wanif proto gre from any to any port 0 -> $pptpdtarget rdr on $wanif proto tcp from any to any port 1723 -> $pptpdtarget -# auto-proxy -rdr on $lanif proto tcp from any to any port 21 -> 127.0.0.1 port 8021 - EOD; } } |