Linux - Server This forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
11-20-2009, 01:59 AM
#1
Member
Registered: Jul 2004
Posts: 302
Thanked: 0
HTTPS does't work through Squid
[
Log in to
get rid of this advertisement]
Hi!
I have a small office network with a linux gateway. I use squid proxy on linux to provide internet to the LAN machines. Unfortunately the LAN machines can't reach HTTPS sites (HTTP sites can).
Is it possible to reach https sites through squid proxy?
Thanks
11-20-2009, 02:22 AM
#2
Member
Registered: Oct 2009
Location: Budapest
Distribution: Mostly Gentoo, sometimes Debian/(K)Ubuntu
Posts: 143
Thanked: 14
Yes
It is possible using HTTP CONNECT oly if you are using non-transparent proxying. You also have to configure your clients to use it.
11-20-2009, 02:51 AM
#3
Member
Registered: Jul 2004
Posts: 302
Thanked: 0
Original Poster
Quote:
Originally Posted by
janoszen
It is possible using HTTP CONNECT oly if you are using non-transparent proxying. You also have to configure your clients to use it.
Here is my squid.conf file:
Code:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl my-lan src 5.2.2.1-5.2.2.255/255.255.255.255
http_access allow my-lan
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
icp_access allow all
http_port 3128
access_log /var/log/squid/access.log squid
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
coredump_dir /var/spool/squid
What can I change here to allow https traffic?
Thanks!
11-20-2009, 03:04 AM
#4
Senior Member
Registered: May 2009
Location: Barcelona, Spain
Distribution: Slackware 13, Ubuntu 9.04,Debian 32 + 64, AIX 5.3, RHEL5, LFS, BackTrack4
Posts: 1,816
Thanked: 330
Hi,
Put in:
Code:
http_access allow CONNECT SSL_ports
before
Code:
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
and try again please.
Kind regards,
Eric
11-20-2009, 03:22 AM
#5
Member
Registered: Jul 2004
Posts: 302
Thanked: 0
Original Poster
Quote:
Originally Posted by
EricTRA
Hi,
Put in:
Code:
http_access allow CONNECT SSL_ports
before
Code:
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
and try again please.
Kind regards,
Eric
I've tired it, but unfortunately it did't work!
Do you have any other ideas?
11-20-2009, 05:51 AM
#6
Senior Member
Registered: May 2009
Location: Barcelona, Spain
Distribution: Slackware 13, Ubuntu 9.04,Debian 32 + 64, AIX 5.3, RHEL5, LFS, BackTrack4
Posts: 1,816
Thanked: 330
Maybe silly question but did you restart Squid after changing the configuration?
Kind regards,
Eric
11-20-2009, 06:11 AM
#7
Member
Registered: Jul 2004
Posts: 302
Thanked: 0
Original Poster
Quote:
Originally Posted by
EricTRA
Maybe silly question but did you restart Squid after changing the configuration?
Kind regards,
Eric
Yes, every time!
11-20-2009, 06:15 AM
#8
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Ubuntu Karmic, CentOS 5.4
Posts: 2,746
Thanked: 188
Is your squid working in transparent mode? I have a transparent squid working fine even for secure sites without any explicit rules.
11-20-2009, 08:12 AM
#9
Moderator
Registered: Jul 2003
Distribution: Ubuntu 8.10
Posts: 8,748
Thanked: 123
Quote:
Originally Posted by
EricTRA
Hi,
Put in:
Code:
http_access allow CONNECT SSL_ports
before
Code:
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
and try again please.
Kind regards,
Eric
Right, but at that point the request would already have been allowed by this:
Code:
acl my-lan src 5.2.2.1-5.2.2.255/255.255.255.255
http_access allow my-lan
That is, assuming the requests are indeed coming from those source IPs.
Quote:
Originally Posted by
gubak
I've tired it, but unfortunately it did't work!
Do you have any other ideas?
Show us what appears in the access log when HTTPS failure occurs.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 06:35 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more.
Click Here to receive a complimentary subscription courtesy of LQ.
Latest Threads
LQ News
LQ Podcast
LQ Radio