Project

General

Profile

« Previous | Next » 

Revision 47cc98de

Added by Ermal LUÇI over 14 years ago

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.

View differences:

etc/inc/filter.inc
1545 1545
		if ($config['pptpd']['mode'] == "redir") {
1546 1546
			$pptpdtarget = $config['pptpd']['redir'];
1547 1547
			$natrules .= "# PPTP\n";
1548
			$natrules .= "rdr on \$WAN proto gre from any to any -> {$pptpdtarget}\n";
1549
			$natrules .= "rdr on \$WAN proto tcp from any to any port 1723 -> {$pptpdtarget}\n";
1548
			$natrules .= "rdr on \${$FilterIflist['wan']['descr']} proto gre from any to any -> {$pptpdtarget}\n";
1549
			$natrules .= "rdr on \${$FilterIflist['wan']['descr']} proto tcp from any to any port 1723 -> {$pptpdtarget}\n";
1550 1550
		}
1551 1551
	}
1552 1552

  

Also available in: Unified diff