hi amitsharma_26,
i tried your squid script.i also want the same scenario,as teluguswan wanted. but unfortunately it's not working with
my squid. my parent squid is 192.168.1.20:3128 and my secondary squid is 192.168.2.20:3128. can you guide me in this please. when i put your squid script and resart i get the following error.
-------------------------------------------------------
# /etc/init.d/squid restart
Restarting proxy server: FATAL: getpwnam failed to find userid for effective user 'squid'
Squid Cache (Version 2.5.STABLE9): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.003 user + 0.001 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
/etc/init.d/squid: line 184: 4207 Aborted start-stop-daemon --quiet --start --pidfile $PIDFILE --chuid $CHUID --exec $DAEMON -- $SQUID_ARGS </dev/null
------------------------------------------------------------
then i adjusted the squid.conf as below.
---------------------------------
#cache_effective_user squid
#cache_effective_group squid
----------------------------------
now the problem i am having is, it's not getting the websites as i request. i checked the access.log and found the following messages.
-----------------------------------------------------------
1159800035.706 60575 192.168.2.200 TCP_MISS/503 0 CONNECT talk.google.com:443 - DEFAULT_PARENT/192.168.1.20 -
1159800035.709 0 192.168.2.200 TCP_DENIED/403 1404 CONNECT talk.google.com:5222 - NONE/- text/html
1159800070.218 0 192.168.2.200 TCP_MISS/503 0 CONNECT talkx.l.google.com:443 - NONE/- -
1159800070.221 0 192.168.2.200 TCP_DENIED/403 1410 CONNECT talkx.l.google.com:5222 - NONE/- text/html
1159800074.238 240358 192.168.2.200 TCP_MISS/504 1412 GET
http://www.google.com/ - NONE/- text/html
----------------------------------------------------------------