mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fixes #463. Actually define the correct variable so the pptp rdr rules can be added to the config.
This commit is contained in:
parent
746e60c9ee
commit
aa115b2f3e
@ -1396,18 +1396,10 @@ function filter_nat_rules_generate() {
|
||||
else
|
||||
sigkillbypid("/var/run/inetd.pid", "HUP");
|
||||
|
||||
if($pptpdcfg['mode'] && $pptpdcfg['mode'] != "off") {
|
||||
if($pptpdcfg['mode'] == "server")
|
||||
$pptpdtarget = "127.0.0.1";
|
||||
else if($pptpdcfg['mode'] == "redir")
|
||||
$pptpdtarget = $pptpdcfg['redir'];
|
||||
if($pptpdcfg['mode'] == "redir" && is_array($FilterIflist['wan'])) {
|
||||
/*
|
||||
* NB: ermal -- the rdr rule below is commented out now that we have a solution
|
||||
* for PPTP passthrough. This unbreaks other GRE traffic passing
|
||||
* through pfSense.
|
||||
* After some more testing this will be removed compeletely.
|
||||
*/
|
||||
$pptpdcfg = $config['pptpd'];
|
||||
if($pptpdcfg['mode'] && $pptpdcfg['mode'] == "redir") {
|
||||
$pptpdtarget = $pptpdcfg['redir'];
|
||||
if(is_ipaddr($pptpdtarget) && is_array($FilterIflist['wan'])) {
|
||||
$natrules .= <<<EOD
|
||||
|
||||
# PPTP
|
||||
|
||||
Loading…
Reference in New Issue
Block a user