aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-04-18 18:34:08 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-04-18 18:34:08 -0400
commit4e8c21be7613fa6657ab54f41ee3d90ee34a4231 (patch)
tree693d9fb7398e6b74e17cbbbd9f95204c841a0759 /config/squid
parent1a3fcfac91774ffd0d8e71d3302d5eed782f3773 (diff)
downloadpfsense-packages-4e8c21be7613fa6657ab54f41ee3d90ee34a4231.tar.gz
pfsense-packages-4e8c21be7613fa6657ab54f41ee3d90ee34a4231.tar.bz2
pfsense-packages-4e8c21be7613fa6657ab54f41ee3d90ee34a4231.zip
Only install if localip is set and mode == server
Diffstat (limited to 'config/squid')
-rw-r--r--config/squid/squid.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc
index 1980e1de..fb437d5b 100644
--- a/config/squid/squid.inc
+++ b/config/squid/squid.inc
@@ -1244,11 +1244,11 @@ function squid_generate_rules($type) {
$rules .= "rdr on $iface proto tcp from any to !($iface) port 80 -> 127.0.0.1 port 80\n";
}
/* Handle PPPOE case */
- if($config['pppoe']['mode'] == "server") {
+ if($config['pppoe']['mode'] == "server" && $config['pppoe']['localip']) {
$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'] == "server") {
+ if($config['pptpd']['mode'] == "server" && $config['pptpd']['localip']) {
$rules .= "rdr on \$pptp proto tcp from any to !(\$pptp) port 80 -> 127.0.0.1 port 80\n";
}
$rules .= "\n";
@@ -1260,10 +1260,10 @@ function squid_generate_rules($type) {
$rules .= "pass in quick on $iface proto tcp from any to !($iface) port $port flags S/SA keep state\n";
$rules .= "\n";
};
- if($config['pppoe']['mode'] == "server") {
+ if($config['pppoe']['mode'] == "server" && $config['pppoe']['localip']) {
$rules .= "pass in quick on \$pppoe proto tcp from any to !(\$pppoe) port $port flags S/SA keep state\n";
}
- if($config['pptpd']['mode'] == "server") {
+ if($config['pptpd']['mode'] == "server" && $config['pptpd']['localip']) {
$rules .= "pass in quick on \$pptp proto tcp from any to !(\$pptp) port $port flags S/SA keep state\n";
}
break;