aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid
diff options
context:
space:
mode:
Diffstat (limited to 'packages/squid')
-rw-r--r--packages/squid/squid.inc4
-rw-r--r--packages/squid/squid.xml2
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc
index 22af123b..840bbf33 100644
--- a/packages/squid/squid.inc
+++ b/packages/squid/squid.inc
@@ -296,7 +296,7 @@ function squid_validate_general($post, $input_errors) {
$input_errors[] = "You can not run squid on the same port as the webgui";
}
- if (($post['transparent_proxy'] != 'on') && ($post['private_subnet_proxy'] == 'on')) {
+ if (($post['transparent_proxy'] != 'on') && ($post['private_subnet_proxy_off'] == 'on')) {
$input_errors[] = "You can not disable forwarding traffic to private subnets to the proxy server without using the transparent proxy.";
}
@@ -1044,7 +1044,7 @@ function squid_generate_rules($type) {
switch($type) {
case 'nat':
$rules .= "\n# Setup Squid proxy redirect\n";
- if ($squid_conf['private_subnet_proxy'] == 'on') {
+ if ($squid_conf['private_subnet_proxy_off'] == 'on') {
foreach ($ifaces as $iface){
$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";
}
diff --git a/packages/squid/squid.xml b/packages/squid/squid.xml
index b1cc8b71..5c19d96f 100644
--- a/packages/squid/squid.xml
+++ b/packages/squid/squid.xml
@@ -169,7 +169,7 @@
<required/>
</field>
<field>
- <fieldname>private_subnet_proxy</fieldname>
+ <fieldname>private_subnet_proxy_off</fieldname>
<fielddescr>Do NOT proxy Private Address Space (RFC 1918)</fielddescr>
<description>Do not forward traffic to Private Address Space (RFC 1918) to the proxy server.</description>
<type>checkbox</type>