diff options
author | Ermal <eri@pfsense.org> | 2011-03-09 21:14:25 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-03-09 21:14:25 +0000 |
commit | 47cc98de0585911b97a1242621d4a9697e54b6bf (patch) | |
tree | 9624bfc033f14a03744eaddf750615ad64233d70 /etc | |
parent | 28a581b83d5feb8dcfadf2551e83552ccd43ed13 (diff) | |
download | pfsense-47cc98de0585911b97a1242621d4a9697e54b6bf.zip pfsense-47cc98de0585911b97a1242621d4a9697e54b6bf.tar.gz |
Correctly use the WAN macro definition for the interface on 2.0. Though i still insist that people should do this themselves rather than relying on some obscure gui option.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 2e91944..5850224 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1545,8 +1545,8 @@ function filter_nat_rules_generate() { if ($config['pptpd']['mode'] == "redir") { $pptpdtarget = $config['pptpd']['redir']; $natrules .= "# PPTP\n"; - $natrules .= "rdr on \$WAN proto gre from any to any -> {$pptpdtarget}\n"; - $natrules .= "rdr on \$WAN proto tcp from any to any port 1723 -> {$pptpdtarget}\n"; + $natrules .= "rdr on \${$FilterIflist['wan']['descr']} proto gre from any to any -> {$pptpdtarget}\n"; + $natrules .= "rdr on \${$FilterIflist['wan']['descr']} proto tcp from any to any port 1723 -> {$pptpdtarget}\n"; } } |