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 |
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.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-12-2009, 10:49 AM
|
#1
|
|
LQ Newbie
Registered: May 2009
Posts: 2
Rep:
|
Squid server not giving access to my local machine to internet
Hi,
I ma facing some problem with my squid server. I am unable to connect to internet for the lcoal machine as well as on other machines. Here is the conf file for my squid server.
cat /etc/squid/squid.conf
http_port 8080
acl oracle src 10.178.92.0/255.255.252.0
http_access allow localhost
http_access allow oracle
firewall and the selinux are off
cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=static
BROADCAST=10.178.95.255
HWADDR=00:0C:29:68:F7:AE
IPADDR=10.178.92.121
NETMASK=255.255.252.0
NETWORK=10.178.92.0
ONBOOT=yes
and I have made the necessasy changes in my firefox by entering the squid server and the port nummber in that.
browser is showing:
access denied.
"Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect."
Please suggest what needs to be done in this case
Waiting for the reply.
|
|
|
|
05-13-2009, 04:18 AM
|
#2
|
|
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,592
Rep: 
|
Where have you put the http_access option?
Are they below http_access deny all?
|
|
|
|
05-13-2009, 08:43 AM
|
#3
|
|
LQ Newbie
Registered: May 2009
Posts: 2
Original Poster
Rep:
|
squid.conf file
yes this is below http_access deny all
my conf file for squid.conf contains :------
[root@linuxsvr15 ~]# grep -v "^#" /etc/squid/squid.conf | sed -e '/^$/d'
http_port 8080
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
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 mylan src 10.178.92.0/255.255.252.0
http_access allow manager localhost
http_access deny manager
http_access allow localhost
http_access allow mylan
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_reply_access allow all
icp_access allow all
coredump_dir /var/spool/squid
Please check and let me know if any thing else needs to be done in this.
|
|
|
|
05-14-2009, 12:15 AM
|
#4
|
|
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,592
Rep: 
|
You should have http_access allow options on top and then deny all others with
http_access deny all. But this option should be at the bottom.
|
|
|
|
| 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 03:06 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|