LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-20-2009, 05:32 AM   #1
mredloft
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Rep: Reputation: 0
Problem on squid


I have set up squid 2.5 server as my proxy.I could access Internet from the server itself and it is shown in the squid access log as well(when accessing through this squid). But I am not able to access Internet from other machines which are on the same LAN, though i got ping reply from the server. No progress is shown at all on the access log while trying to access.. Here is part of my config file:

http_port 8080

acl our_network src 10.180.0.0/255.255.255.0
http_access allow our_network

----
Whate could be the problem.

thanks
mredloft
 
Old 04-20-2009, 06:18 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
It is possible that iptables is blocking your clients from connection to port 8080 on the server check that.
 
Old 04-20-2009, 06:27 AM   #3
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
is 255.255.255.0 (/24) your proper network mask? not /16 ? give us an examble of the IP address of a client from which you are trying to browse.
Did you configure the proxy settings on the clients (properly)
Secondly, could there be any network security issues preventing access to squid? try
# telnet squid-server 8080
and see whats the response like.
Finally if all above is good, send your complete squid.conf here.
 
Old 04-20-2009, 06:29 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
I do not think the problem is the netmask of the acl as then squid would have logged a DENY action in the log file, nothing is being logged meaning the connection does not get to squid.
 
Old 04-21-2009, 06:46 AM   #5
mredloft
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Guys, Thanks for all your concern...

As i mention, the server's acceses is logged when proxy is given on the server's browser. But no others acess were logged at all, even though i could get a ping reply from the server.

Regarding the IP tables, i dont have much idea, i just use the default setting on IP table.

Regarding netmask.../24 is our netmask given. client's Ip: 10.180.0.118/255.255.255.0. I have given the proxy setting properly on the client side.

Regarding the configuration, i just changed as follow (no other lines have been changed in the config filena

http_port 8080

acl our_network src 10.180.0.0/255.255.255.0
http_access allow our_network

Thanks in advance
 
Old 04-21-2009, 07:59 AM   #6
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
Quote:
# telnet squid-server 8080
You didnt give us output to this command???
 
Old 04-22-2009, 01:56 AM   #7
mredloft
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Original Poster
Rep: Reputation: 0
@chitambira, the output of # telnet squid-server 8080 is

telnet: connect to address 10.180.0.51: No route to host
telnet: unable to connect to remote host: No route to host

So how do i proceed pls..
 
Old 04-22-2009, 02:30 AM   #8
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
As they mentioned above, have you checked your iptables whether it is turnon or not? if it is turnon check the following entry whether it is exist or not
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
 
Old 04-28-2009, 11:54 PM   #9
mredloft
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you guys for your replies, now its' working. i have appended a line in the iptable config file:
-A RH-Firewall-1-INPUT -s 10.180.0.0/24 -m state --state NEW -p tcp --dport 8080 -j ACCEPT
 
Old 04-29-2009, 01:35 AM   #10
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
Well if only you had listened to my advise in the first place.
 
  


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
Squid Problem (squid restrict some trusted sites.). jpmaxyusuf Linux - Networking 3 01-01-2009 11:33 AM
squid problem ghabsh Linux - Server 8 04-25-2007 10:52 AM
squid problem linetnew Linux - Networking 1 10-18-2005 05:28 AM
problem in squid muhaur Linux - Enterprise 1 08-15-2005 12:46 AM
Squid Problem !!!!! baye Linux - General 4 09-09-2004 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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