Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I have a stand alone PC (running Fedora 7) which I use to connect to the net. I tried running squid on it, just to have its caching property to speed up net access.
I have installed squid-2.6.STABLE16 and it is up and running.
2007/09/23 23:33:11| aclParseIpData: WARNING: Netmask masks away part of the specified IP in '192.168.1.3/24'
2007/09/23 23:33:11| Starting Squid Cache version 2.6.STABLE16 for i686-pc-linux-gnu...
2007/09/23 23:33:11| Process ID 9959
2007/09/23 23:33:11| With 1024 file descriptors available
2007/09/23 23:33:11| Using epoll for the IO loop
2007/09/23 23:33:11| DNS Socket created at 0.0.0.0, port 33045, FD 6
2007/09/23 23:33:11| Adding nameserver 208.67.222.222 from /etc/resolv.conf
2007/09/23 23:33:11| Adding nameserver 208.67.220.220 from /etc/resolv.conf
2007/09/23 23:33:11| Adding nameserver 192.168.1.1 from /etc/resolv.conf
2007/09/23 23:33:11| Unlinkd pipe opened on FD 12
2007/09/23 23:33:11| Swap maxSize 102400 KB, estimated 7876 objects
2007/09/23 23:33:11| Target number of buckets: 393
2007/09/23 23:33:11| Using 8192 Store buckets
2007/09/23 23:33:11| Max Mem size: 8192 KB
2007/09/23 23:33:11| Max Swap size: 102400 KB
2007/09/23 23:33:11| Rebuilding storage in /usr/local/squid/var/cache (CLEAN)
2007/09/23 23:33:11| Using Least Load store dir selection
2007/09/23 23:33:11| Set Current Directory to /usr/local/squid/var/cache
2007/09/23 23:33:11| Loaded Icons.
2007/09/23 23:33:11| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 14.
2007/09/23 23:33:11| Accepting ICP messages at 0.0.0.0, port 3130, FD 15.
2007/09/23 23:33:11| WCCP Disabled.
2007/09/23 23:33:11| Ready to serve requests.
2007/09/23 23:33:11| Done reading /usr/local/squid/var/cache swaplog (0 entries)
2007/09/23 23:33:11| Finished rebuilding storage from disk.
2007/09/23 23:33:11| 0 Entries scanned
2007/09/23 23:33:11| 0 Invalid entries.
2007/09/23 23:33:11| 0 With invalid flags.
2007/09/23 23:33:11| 0 Objects loaded.
2007/09/23 23:33:11| 0 Objects expired.
2007/09/23 23:33:11| 0 Objects cancelled.
2007/09/23 23:33:11| 0 Duplicate URLs purged.
2007/09/23 23:33:11| 0 Swapfile clashes avoided.
2007/09/23 23:33:11| Took 0.3 seconds ( 0.0 objects/sec).
2007/09/23 23:33:11| Beginning Validation Procedure
2007/09/23 23:33:11| Completed Validation Procedure
2007/09/23 23:33:11| Validated 0 Entries
2007/09/23 23:33:11| store_swap_size = 0k
2007/09/23 23:33:12| storeLateRelease: released 0 objects
Next I configured firefox to use localhost.localdomain as proxy server and port 3128.
But I get the following error message.
Code:
* 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.
I'd appreciate any help to get this fixed, please.
You don't need to use "localdomain" in your Firefox - localhost is fine. Personally, I use 127.0.0.1 so that it doesn't even have to look at /etc/hosts but it's all good. In any case, your problem is being caused by a bad ACL (or lack of a good one). This should be an easy fix. Let's see what your squid.conf looks like. Use this command to strip comments and spaces before posting:
You need only one of those not both, I realize that now :-)
I will remove one.
I was going through various documentation and web sites to fix this and I put that in to try to get it to work.
Is there any way to ensure that all inter net connection goes through squid only. Right now, I can choose to use the proxy setting for Firefox and therefore go through squid or connect directly. I have a new thread for that, kindly suggest.
You need only one of those not both, I realize that now :-)
I will remove one.
I was going through various documentation and web sites to fix this and I put that in to try to get it to work.
If this is only for localhost then you don't need any 192.168.x.x lines at all. Also, I'd change the "http_port 3128" line to "http_port 127.0.0.1:3128" to make sure it only listens on localhost, and I'd remove the "icp_access" lines and use a "icp_port 0" line to disable ICP entirely.
Quote:
Is there any way to ensure that all inter net connection goes through squid only. Right now, I can choose to use the proxy setting for Firefox and therefore go through squid or connect directly. I have a new thread for that, kindly suggest.
What do you know, it is working without icp enabled too :-)
As I said I just put that in from somewhere, I have a long way to go with squid.
Its working without the 192.168.x.x lines too.
I guess that is because the squid server and client (Firefox) are both on localhost. If I want other machine I will have to put in that ip.
Is there any way to ensure that all inter net connection goes through squid only. Right now, I can choose to use the proxy setting for Firefox and therefore go through squid or connect directly. I have a new thread for that, kindly suggest.
[/url]
well you can do it if you're using transparent proxy...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.