thanks for your reply. I changed squid.conf and now on the LAN PCs (with proxy set to 192.168.1.1:3128) I get the authentication window with following caption:
------------------------------------------
The proxy 192.168.1.1:3128 is requesting a a username and password. The site says: "RRCAT proxy-caching web server"
------------------------------------------
Once, I fill userid/passwd, it gives the same error. I get a similar caption when I connect to internet from my server. The difference is that it gives IP address 10.31.31.10 instead of 192....; and after giving uid/passwd i get to internet from server.
Now my squid.conf is as:
---------------
cache_peer 10.31.31.10 parent 3128 3130 no-query no-digest login=userid
asswd
never_direct allow all
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
hosts_file /etc/hosts
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 purge method PURGE
acl CONNECT method CONNECT
cache_mem 1024 MB
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
acl lan src 10.126.2.101 192.168.1.0/24
http_access allow localhost
http_access allow lan
http_access deny all
http_reply_access allow all
icp_access allow all
visible_hostname plasma1
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
coredump_dir /var/spool/squid
http_port 3128 transparent
cache_mem 8 MB
coredump_dir /var/spool/squid
cache_mem 8 MB
memory_replacement_policy lru
cache_replacement_policy lru
cache_dir ufs /var/cache/squid 100 16 256
minimum_object_size 0 KB
maximum_object_size 4096 KB
cache_swap_low 90
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
emulate_httpd_log off
ftp_passive on
connect_timeout 2 minutes
client_lifetime 1 days
cache_mgr webmaster
visible_hostname plasma1
icp_port 3130
error_directory /usr/share/squid/errors/English
coredump_dir /var/cache/squid
cache_swap_high 95
---------------------
Thanks again.
Previously the access.log was shwoing like this
--------------------------------------
1249981609.704 288 192.168.1.4 TCP_MISS/503 2455 GET
http://www.google.com/ - DIRECT/209.85.231.147 text/html
1249981679.435 282 192.168.1.4 TCP_MISS/503 2468 GET
http://www.google.com/ - DIRECT/209.85.231.147 text/html
----------------------------------------
but I did some changes and now the access log shows:
----------------------------------------
1250052501.170 23 192.168.1.4 TCP_MISS/407 1840 GET
http://www.google.com/ - FIRST_UP_PARENT/10.31.31.10 text/html
1250052669.096 11 192.168.1.4 TCP_MISS/407 1840 GET
http://www.google.com/ - FIRST_UP_PARENT/10.31.31.10 text/html
1250052678.326 12 192.168.1.4 TCP_MISS/407 1840 GET
http://www.google.com/ - FIRST_UP_PARENT/10.31.31.10 text/html