Skip to content

Commit

Permalink
squid3 - include dns_v4_first options that fixes https connection err…
Browse files Browse the repository at this point in the history
…ors on squid3
  • Loading branch information
marcelloc committed Sep 5, 2012
1 parent 08f323c commit 4c831fa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
20 changes: 10 additions & 10 deletions config/squid-reverse/squid.inc
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ function squid_resync_general() {
$conf .= "http_port 127.0.0.1:" . $settings['proxy_port'] . " intercept\n";
}
$icp_port = ($settings['icp_port'] ? $settings['icp_port'] : 7);

$dns_v4_first= ($settings['dns_v4_first'] == "on" ? "on" : "off" );
$pidfile = "{$g['varrun_path']}/squid.pid";
$language = ($settings['error_language'] ? $settings['error_language'] : 'en');
$icondir = SQUID_CONFBASE . '/icons';
Expand All @@ -787,17 +787,17 @@ function squid_resync_general() {
$logdir_access = ($settings['log_enabled'] == 'on' ? $logdir . '/access.log' : '/dev/null');

$conf .= <<<EOD
icp_port $icp_port
pid_filename $pidfile
icp_port {$icp_port}
dns_v4_first {$dns_v4_first}
pid_filename {$pidfile}
cache_effective_user proxy
cache_effective_group proxy
error_default_language $language
icon_directory $icondir
visible_hostname $hostname
cache_mgr $email
access_log $logdir_access
cache_log $logdir_cache
error_default_language {$language}
icon_directory {$icondir}
visible_hostname {$hostname}
cache_mgr {$email}
access_log {$logdir_access}
cache_log {$logdir_cache}
cache_store_log none
sslcrtd_children 0
Expand Down
8 changes: 7 additions & 1 deletion config/squid-reverse/squid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
<type>checkbox</type>
</field>
<field>
<fielddescr>Bypass proxy for Private Address Space (RFC 1918) destination</fielddescr>
<fielddescr>Bypass proxy for Private Address destination</fielddescr>
<fieldname>private_subnet_proxy_off</fieldname>
<description>Do not forward traffic to Private Address Space (RFC 1918) &lt;b&gt;destination&lt;/b&gt; through the proxy server but directly through the firewall.</description>
<type>checkbox</type>
Expand All @@ -290,6 +290,12 @@
<type>input</type>
<size>70</size>
</field>
<field>
<fielddescr>Resolv dns v4 first</fielddescr>
<fieldname>dns_v4_first</fieldname>
<description><![CDATA[Enable this option to force dns v4 lookup first. This option is very usefull if you have problems to access https sites.]]></description>
<type>checkbox</type>
</field>
<field>
<fielddescr>Use alternate DNS-servers for the proxy-server</fielddescr>
<fieldname>dns_nameservers</fieldname>
Expand Down
2 changes: 1 addition & 1 deletion pkg_config.8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@
<pkginfolink>http://forum.pfsense.org/index.php/topic,48347.0.html</pkginfolink>
<website>http://www.squid-cache.org/</website>
<category>Network</category>
<version>3.1.20 pkg 2.0.5_3</version>
<version>3.1.20 pkg 2.0.5_4</version>
<status>beta</status>
<required_version>2.0</required_version>
<maintainer>[email protected] [email protected] [email protected] [email protected] [email protected]</maintainer>
Expand Down
2 changes: 1 addition & 1 deletion pkg_config.8.xml.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@
<pkginfolink>http://forum.pfsense.org/index.php/topic,48347.0.html</pkginfolink>
<website>http://www.squid-cache.org/</website>
<category>Network</category>
<version>3.1.20 pkg 2.0.5_3</version>
<version>3.1.20 pkg 2.0.5_4</version>
<status>beta</status>
<required_version>2.0</required_version>
<maintainer>[email protected] [email protected] [email protected] [email protected] [email protected]</maintainer>
Expand Down

0 comments on commit 4c831fa

Please sign in to comment.