[SOLVED] Squid proxy, 2 minutes delay after boot?
I have installed squid proxy on my local machine (not a server). The intention is to use it as a content filter for the internet traffic.
I have a list of allowed sites and a list of forbidden sites. My Access Control Lists in squid.conf is defined as follows:
Also, transparent proxy is enabled as follows:
acl business_hours time M T W H F 9:00-18:00
acl GoodSites dstdomain "/etc/squid/allowed-sites.squid"
acl BadSites dstdomain "/etc/squid/restricted-sites.squid"
http_access deny BadSites
http_access deny business_hours !GoodSites
The impact of squid filtering is immediately noticeable in the firefox, when starting and stopping the service.
http_port 3128 transparent
However, each time after booting my system, firefox can't open any web page for at least 2 minutes. Then everything starts working properly. ACL restrictions are also effective.
[root@blnl]# service squid start
[root@blnl]# service squid stop
To start squid at boot, I have used following command:
Is the 2 minutes delay after boot normal?
[root@blnl]# chkconfig squid on
How can I reduce this delay?
When I bypass the squid proxy in firefox I get immediate access to all web pages. Of course, in that case squid can't control the content any more. So that is not what I want to do.
Can someone please help me with this?