aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid/squid.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/squid/squid.inc')
-rw-r--r--packages/squid/squid.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc
index 6835be33..22af123b 100644
--- a/packages/squid/squid.inc
+++ b/packages/squid/squid.inc
@@ -1046,9 +1046,7 @@ function squid_generate_rules($type) {
$rules .= "\n# Setup Squid proxy redirect\n";
if ($squid_conf['private_subnet_proxy'] == 'on') {
foreach ($ifaces as $iface){
- $rules .= "no rdr on $iface proto tcp from any to 10.0.0.0/8 port 80\n";
- $rules .= "no rdr on $iface proto tcp from any to 172.16.0.0/12 port 80\n";
- $rules .= "no rdr on $iface proto tcp from any to 192.168.0.0/16 port 80\n";
+ $rules .= "no rdr on $iface proto tcp from any to { 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 } port 80\n";
}
}
foreach ($ifaces as $iface){