Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

squid problem !!

Status
Not open for further replies.

hisham

IS-IT--Management
Nov 6, 2000
194
I have SuSE 9.0 box "ip : 192.168.0.2", i am trying to setup squid in this box. After the installation and configuration, i could connect to this server from another client "ip : 192.168.0.100" using port 3128, but only i had access to the pages in ServerRoot "/srv/www" , but i culdent access the internet using squid niether in the server or in the client. I checked /var/log/squid/access.log and i found:

1089645186.615 531 192.168.0.100 TCP_MISS/200 46767 GET - DIRECT/192.168.0.2 text/html
1089645220.271 144915 192.168.0.100 TCP_MISS/504 1419 GET - NONE/- text/html

Is there any missed lines in squid.conf ??
Thanks in advance for any help ...
 
Good question. What *is* in the squid.conf, anyway? Also, Can the proxy server properly resolve DNS names?
 
In squid.conf the only 2 lines i added was:

acl mynet src 192.168.0.0/255.255.255.0
http_access allow mynet

I configured the server as master DNS server " also keeping the Cashing_only Name server" and it runs fine over the LAN, but i don't know how to make the proxy resolve the DNS names, is it in the squid.conf file?
 
Can the server resolve names? If it's the master nameserver, do you have forwarders enabled? I assume so, or it wouldn't be a good nameserver for your workstations.

How about its resolv.conf? That's where squid gets its DNS configuration unless otherwise specified in squid.conf. For testing you could modify the dns_nameservers tag and see what happens.

Finally, can you access external websites via IP address? That'll really determine if the problem is DNS-related.
 
Yes, the server can resolve names, and convert names to IP addresses.
I connect to the Internet using ISDN, after the connection the /etc/resolv.conf looks like:
-----------------------------------
### BEGIN INFO
#
# Modified_by: ipppd
# Backup: /etc/resolv.conf.saved.by.ipppd.ippp0
# Process: ipppd
# Process_id: 7724
# Script: /etc/ppp/ip-up
# Saveto:
# Info: This is a temporary resolv.conf created by service ipppd.
# The previous file has been saved and will be restored later.
#
# If you don't like your resolv.conf to be changed, you
# can set MODIFY_{RESOLV,NAMED}_CONF_DYNAMICALLY=no. This
# variables are placed in /etc/sysconfig/network/config.
#
# You can also configure service ipppd not to modify it.
#
# If you do not like the ipppd to change your nameserver
# settings remove the option MODIFYDNS for this provider
#
### END INFO
search mydomain.com
nameserver "IP of my isp"
nameserver "another IP of my isp"
-----------------------------------------

if disconnected the file looks:
-----------------------------------------
nameserver 192.168.0.2
search mydomain.com
-----------------------------------------

when I tried to access external sites vi IP address, i get the following message:

ERROR


The requested URL could not be retrieved


While trying to retrieve the URL:

The following error was encountered:

Connection Failed

The system returned:

(113) No route to host

The remote host or network may be down. Please try the request again.


Your cache administrator is webmaster.


Generated Mon, 12 Jul 2004 18:33:51 GMT by myserver.mydomain.com (squid/2.5.STABLE3)
 
Try running "route -n" to see what the routing table looks like. This seems to indicate that no IP traffic (including DNS) is getting out. I'm suspecting a connection problem.

Try pinging internet hosts, by IP then by name, from the server console.
 
there is no connection problem, because i can connect to the internet when i stop squid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top