LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2015, 06:13 AM   #1
lq_win
Member
 
Registered: Jul 2015
Posts: 66

Rep: Reputation: Disabled
Question why I am unable to access certain https sites?


Dear All,

I am running squid-3.1.10-29.el6.x86_64 on centOS 6.6, why I am unable to access certain https sites?
what I missed with my squid.conf below?
please help..
many thanks in advance..
Win


acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines

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

#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost

#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost


# And finally deny all other access to this proxy

http_access deny all

# Squid normally listens to port 3128
http_port 3128 transparent
visible_hostname mysquid.mydomain.com

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /var/spool/squid 100 16 256

# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
cache_effective_user squid
cache_effective_group squid

forwarded_for on
follow_x_forwarded_for allow localhost
cache_mem 32 MB
 
Old 07-01-2015, 08:12 AM   #2
linom
Member
 
Registered: May 2015
Location: India
Distribution: Debian, CentOS,Redhat, Fedora, Ubuntu
Posts: 91

Rep: Reputation: 13
Does it happen to all HTTPS sites or any specific sites?
 
Old 07-01-2015, 08:51 AM   #3
lq_win
Member
 
Registered: Jul 2015
Posts: 66

Original Poster
Rep: Reputation: Disabled
Hi,

as far as I know is: it happens to 2 Banks and 1 Airlines HTTPS site.
the others such as: facebook, google, youtube are working properly..

What I missed?

Thanks
 
Old 07-01-2015, 08:58 AM   #4
linom
Member
 
Registered: May 2015
Location: India
Distribution: Debian, CentOS,Redhat, Fedora, Ubuntu
Posts: 91

Rep: Reputation: 13
Can you paste the entries in /var/log/squid/access log file for those specific banks and airlines?
 
Old 07-01-2015, 09:04 AM   #5
lq_win
Member
 
Registered: Jul 2015
Posts: 66

Original Poster
Rep: Reputation: Disabled
48 10.100.100.15 TCP_MISS/301 389 GET http://www.garuda-indonesia.com/ - DIRECT/23.9.199.131 -
10.100.100.15 TCP_MISS/302 427 GET http://www.garuda-indonesia.com/ - DIRECT/23.9.199.131 -e
 
Old 07-01-2015, 09:38 AM   #6
linom
Member
 
Registered: May 2015
Location: India
Distribution: Debian, CentOS,Redhat, Fedora, Ubuntu
Posts: 91

Rep: Reputation: 13
Thumbs up

For troublshooting, change the entry

http_access deny all

to

http_access allow all

restart squid services.

Then check the websites (clearing the browser caches initially).
 
Old 07-01-2015, 09:51 AM   #7
lq_win
Member
 
Registered: Jul 2015
Posts: 66

Original Poster
Rep: Reputation: Disabled
1435761965.690 12 10.100.100.15 TCP_MISS/302 420 GET http://www.garuda-indonesia.com/ - DIRECT/23.192.193.158 -
1435761965.779 6 10.100.100.15 TCP_MISS/301 317 GET http://www.garuda-indonesia.com/id/id/index.page - DIRECT/23.192.193.158 -
1435

no luck :-(
 
Old 07-03-2015, 06:00 AM   #8
linom
Member
 
Registered: May 2015
Location: India
Distribution: Debian, CentOS,Redhat, Fedora, Ubuntu
Posts: 91

Rep: Reputation: 13
In squid.conf, use google's DNS for testing
dns_nameservers 8.8.4.4 8.8.8.8

(Note; check with http_access allow all)


Restart the squid service and check.

Hope, there is no firewall between the squid and the internet?
 
Old 07-06-2015, 08:21 PM   #9
lq_win
Member
 
Registered: Jul 2015
Posts: 66

Original Poster
Rep: Reputation: Disabled
hi.. thanks
it resolved
I didnot do anything there.. I suspect it's ISP's problem..
 
Old 07-07-2015, 01:34 AM   #10
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by lq_win View Post
hi.. thanks
it resolved
I didnot do anything there.. I suspect it's ISP's problem..
Hi...

Glad you got it worked out.

If you would, please mark this thread as "SOLVED" by clicking on "Thread Tools" above your initial post. Thanks!

Regards...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to access certain sites pweston96 Linux - Networking 27 07-20-2012 12:16 AM
Unable to access repo with SVN+HTTPS. unreal128 Linux - Server 5 07-13-2011 11:33 AM
iptables: cannot access HTTPS sites socceroos Linux - Security 7 08-17-2009 10:38 PM
Can't access https sites in Firefox, fresh Ubuntu 6.10 install Gnewb Linux - Newbie 10 12-05-2006 09:07 PM
Client cannot open few https://.. sites i.e. secure sites rajeshghy Linux - General 1 11-02-2006 06:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration