summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-29 22:29:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-29 22:29:10 +0000
commitaddd2dd5cdb685a0958350894ab9b55f68fe229d (patch)
treed8fad775f89d55cf9f0ac9ea38e695ecdd6bfb35 /etc/inc
parent74285e13bd7465106c4eecf451c77dd65adfa7bb (diff)
downloadpfsense-addd2dd5cdb685a0958350894ab9b55f68fe229d.zip
pfsense-addd2dd5cdb685a0958350894ab9b55f68fe229d.tar.gz
Redirect GRE and port 1723 to frickin pptp proxy if its installed.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 6972744..9f09140 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -919,9 +919,16 @@ EOD;
}
}
+ /* XXX: Move this into a /usr/local/pkg/pf/ helper */
if (is_package_installed("squid") == 1)
$natrules .= "rdr on " . $lanif . " inet proto tcp from any to !{$lanip} port www -> 127.0.0.1 port 3128\n";
+ /* XXX: Move this into a /usr/local/pkg/pf/ helper */
+ if (is_package_installed("frickin") == 1) {
+ $natrules .= "rdr on " . $lanif . " inet proto tcp from any to !{$lanip} port 1723 -> 127.0.0.1 port 1723\n";
+ $natrules .= "rdr on " . $lanif . " inet proto gre from any to !{$lanip} -> 127.0.0.1\n";
+ }
+
return $natrules;
}
OpenPOWER on IntegriCloud