aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-04-14 14:20:37 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-04-14 14:20:37 -0400
commit4ee7915a3f7bbdbee30af44751249b209437b4e9 (patch)
treee751bb46a2c3639f036a6702ddb78976b7ed049f
parent27b72e99f0bda12dba159152b51d7bb119a72be1 (diff)
downloadpfsense-packages-4ee7915a3f7bbdbee30af44751249b209437b4e9.tar.gz
pfsense-packages-4ee7915a3f7bbdbee30af44751249b209437b4e9.tar.bz2
pfsense-packages-4ee7915a3f7bbdbee30af44751249b209437b4e9.zip
Handle PPTP transparent redirection case
-rw-r--r--config/squid/squid.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc
index 9a1d5840..0ce8b2fb 100644
--- a/config/squid/squid.inc
+++ b/config/squid/squid.inc
@@ -1247,6 +1247,10 @@ function squid_generate_rules($type) {
if($config['pppoe']['mode'] == "server") {
$rules .= "rdr on \$pppoe proto tcp from any to !(\$pppoe) port 80 -> 127.0.0.1 port 80\n";
}
+ /* Handle PPTP case */
+ if($config['pptpd']['mode'] != "off") {
+ $rules .= "rdr on \$pptp proto tcp from any to !(\$pptp) port 80 -> 127.0.0.1 port 80\n";
+ }
$rules .= "\n";
break;
case 'filter':
@@ -1259,6 +1263,9 @@ function squid_generate_rules($type) {
if($config['pppoe']['mode'] == "server") {
$rules .= "pass in quick on \$pppoe proto tcp from any to !(\$pppoe) port $port flags S/SA keep state\n";
}
+ if($config['pptpd']['mode'] != "off") {
+ $rules .= "pass in quick on \$pptp proto tcp from any to !(\$pptp) port $port flags S/SA keep state\n";
+ }
break;
default:
break;