LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-03-2012, 04:32 PM   #1
Mastermind-
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
Unhappy Squid Proxy Server not allowing connections


Hello LQ!

I wanted to share a problem with you in the hope that you will be able to work out a solution with me.

I have tried to setup Squid proxy but everytime I try to access a webpage I get the famous webpage "The requested URL could not be retrieved - Access Denied."

The access.log tells me:
Code:
1333487822.659      0 55.555.555.55 TCP_DENIED/403 2596 GET http://google.com/ - NONE/- text/html
1333487822.711      0 55.555.555.55 TCP_DENIED/403 2406 GET http://google.com/favicon.ico - NONE/- text/html
I have tried several solutions that I've found elsewhere on this forum, but without any luck.

This is my config file:

http://pastebin.com/RTdr92LV

Could you please help me?

Thanks in advance!
 
Old 04-09-2012, 04:47 PM   #2
dougt
LQ Newbie
 
Registered: Mar 2012
Distribution: Redhat, Solaris, AIX, HPUX
Posts: 8

Rep: Reputation: Disabled
Is iptables running? If so, stop it and retry the web connection. If it works, there's your problem.
 
Old 04-11-2012, 08:28 AM   #3
nikmit
Member
 
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 178

Rep: Reputation: 34
If you see those logs, iptables is letting the traffic through.

You need to modify the config file though. The default one has no way of knowing what is your local subnet, and who should squid proxy for - you do not want to be an open proxy, allowing connections from everyone.

Code:
# 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
....
# 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 home
Uncomment the relevant localnet entry, and the last but one line. If your local network is 192.168.123.0 then it should look like this:

Code:
# 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
....
# 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 home
Or you can ber more specific and say 'acl localnet src 192.168.123.0/24', or specify multiple access-list entries
acl localnet src x.x.x.x/aa
acl guest1 src y.y.y.y/bb
http_access allow localnet
http_access allow guest1
 
  


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
Allowing VPN traffic via squid proxy server raktri4u Linux - Newbie 4 01-08-2010 05:31 AM
Squid proxy not allowing a dll through to web browser joadoor Linux - Networking 6 10-15-2008 05:18 AM
Allowing FTP on Squid Proxy Server A Simple Noob Linux - Server 3 11-16-2007 08:40 PM
not allowing users to access internet using port 80 through squid proxy dolreich_c Linux - Security 1 08-02-2007 02:28 AM
Allowing Mails thru Squid Proxy? krishvij Linux - Newbie 3 04-07-2005 04:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:21 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