LinuxQuestions.org
Visit Jeremy's Blog.
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 02-29-2008, 10:28 AM   #16
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985

grep -v -e ^\s*$ -e ^# /etc/squid3/squid.conf
 
Old 03-03-2008, 02:54 AM   #17
grumblenoise
LQ Newbie
 
Registered: Feb 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Hi Acid,

Hope you've had a nice weekend. Here are is the contents of my .CONF file.

http_port 3128
icp_port 3130
cache_peer proxy1.eu.webscanningservice.com parent 3128 3130 proxy-only
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
access_log /var/log/squid3/squid3.log
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 WrkAll src 192.168.1.1-192.168.1.254
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow WrkAll
http_access allow localhost
http_reply_access allow all
icp_access allow all
coredump_dir /var/spool/squid3
 
Old 03-03-2008, 04:03 AM   #18
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
can you use the proxy directly? that service requires a known ip address for connectivity and such like.
 
Old 03-03-2008, 04:11 AM   #19
grumblenoise
LQ Newbie
 
Registered: Feb 2008
Posts: 12

Original Poster
Rep: Reputation: 0
I've allowed my whole workstation range for now. I actually managed to get it to serve 1 or 2 pages on Friday, it was very very slow but it did work.
 
Old 03-03-2008, 04:13 AM   #20
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well if there was nothing in the squid.out and access logs, *I* would be looking at getting a traffic capture of a failing connection, you'll quite possibly instantly see what's gone awry if you look at the http level stuff in wireshark.
 
Old 03-03-2008, 06:23 AM   #21
grumblenoise
LQ Newbie
 
Registered: Feb 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Hi Chris,

Bearing in mind I use Message Labs, am I right in thinking that I need to point to the Message Labs server in "Other Caches" - I've done this and set it as proxy only. I guess what I'm asking is, if I don't set this up. How does Squid know how to find Message Labs and ultimately internet connectivity. We don't have a direct connection to the net, it's all done through Message Labs.

Cheers.

Last edited by grumblenoise; 03-03-2008 at 06:30 AM.
 
Old 03-04-2008, 06:41 AM   #22
grumblenoise
LQ Newbie
 
Registered: Feb 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Hi Chris,

I've now tested my Squid server with a direct line to the Internet and it works perfectly. I've had a word with Message Labs and they have told me they don't support ICP. Would this be why my server when using Message Labs as parent proxy only is not working?

Cheers.
 
Old 03-04-2008, 08:22 AM   #23
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I'm not that famliar with icp to be hoenst, suggests in the directives for cache_peer to set the icp port as 7 for a non-icp peer. alternatively set it to port 0. additionally i think it's a default, but explicitly set "prefer_direct off" to encourage the use of the upstream cache.
 
  


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
configure squid proxy with cc proxy as a parent proxy faisi Linux - Networking 1 08-10-2010 01:16 PM
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 11:25 AM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
Squid as Reverse Proxy and LAN proxy? zivota Linux - Security 2 02-26-2007 05:00 PM

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

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