November 21, 2024, 11:01:17 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: proxy setting  (Read 6923 times)

Offline JAPU

  • Linux Noob !
  • *
  • Posts: 5
proxy setting
« on: June 02, 2009, 04:17:42 AM »
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.

Offline Puja

  • Linux Noob !
  • *
  • Posts: 9
Re: proxy setting
« Reply #1 on: June 06, 2009, 04:51:58 PM »
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


Offline aktiwari4u

  • LST CareTaker
  • Crescent
  • *****
  • Posts: 161
    • http://aktiwari4u.tk/
Re: proxy setting
« Reply #2 on: June 11, 2009, 06:07:43 AM »
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
« Last Edit: June 11, 2009, 06:09:19 AM by aktiwari4u »