Linux Software > Linux Installation Support

proxy setting

(1/1)

JAPU:
1. How can I check and delete log file from proxy server.It is sometimes required to decrease the load on server.
2. What is step by step procedure to prepare a proxy server in a linux.
3. How to check the browsing status a particular of a user under our proxy server.

Puja:
Hi,

1.Every webpage and image accessed via the Squid server is logged in the /var/log/squid/access.log file. This can get quite large on high usage servers. Fortunately, the logrotate program automatically purges this file.

The logrotate program is a log file manager. It is used to regularly cycle (or rotate) log files by removing the oldest ones from your system and creating new log files. It may be used to rotate based on the age of the file or the file’s size, and usually runs automatically through the cron utility. The logrotate program may also be used to compress log files and to configure e-mail to users when they are rotated.

The /etc/logrotate.conf file is the default configuration file for logrotate:
see "man logrotate" for details


2.Setting up proxy setting for allowing access to a particular network

vim /etc/squid/squid.conf
#line no 73
http_port 8080
#uncomment the below line
acl our_networks src 192.168.0.0/24
http_access allow our networks

save the file

service squid restart

Go on web browser:
Edit->Prefernces->connection atrings->manual proxy(http proxy:192.168.0.20 port:8080)
check on Use the proxy

aktiwari4u:
i suppose that the answer of your third question is that you may use webalizer and sarge to check the user usage..............

typo error http_access allow our networks

shuld be treated as

http_access allow our_networks

Navigation

[0] Message Index

Go to full version