Jump to content

[HELP] The Squid configuration


TFT2012
Go to solution Solved by TFT2012,

Recommended Posts

I have a HTTP server setup on port 9000.

I want to setup a squid proxy server lies before it.

After I installed the squid, I just did two changes:

acl Safe_ports port 9000    # http

acl ppnetwork src 192.168.0.0/24
http_access allow ppnetwork

Then, I

squid -k parse
squid

The squid is running. I can see the log from cache.log

2013/09/18 16:25:44 kid1| Store logging disabled
2013/09/18 16:25:44 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2013/09/18 16:25:44 kid1| Target number of buckets: 1008
2013/09/18 16:25:44 kid1| Using 8192 Store buckets
2013/09/18 16:25:44 kid1| Max Mem  size: 262144 KB
2013/09/18 16:25:44 kid1| Max Swap size: 0 KB
2013/09/18 16:25:44 kid1| Using Least Load store dir selection
2013/09/18 16:25:44 kid1| Set Current Directory to /home/xxxxx/squid/var/cache/squid
2013/09/18 16:25:44 kid1| Loaded Icons.
2013/09/18 16:25:44 kid1| HTCP Disabled.
2013/09/18 16:25:44 kid1| Squid plugin modules loaded: 0
2013/09/18 16:25:44 kid1| Accepting HTTP Socket connections at local=0.0.0.0:3128 remote=[::] FD 9 flags=9
2013/09/18 16:25:45 kid1| storeLateRelease: released 0 objects

But, if I access the http site like http://mysite:9000, should I supposed to see any contents in the squid access.log? If so, why is my access.log empty?

Do I setup the proxy server correctly?

 

Thanks!

Edited by TFT2012
Link to comment
Share on other sites

  • Solution

Finally I figured it out. It was quite simple.

 

Ignore the settings above, I wrote the following one. The Squid ver is 3.3.9

acl Safe_ports port 9000-9009 #My testing ports

http_port 9000 accel defaultsite=mywebsitename
cache_peer "the IP of mywebsite" parent "the actual port mywebsite uses" 0

# I assigned 9000 to Squid 
# I changed the actual website port from 9000 to 9001.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.