Журнал лабораторных работ

Содержание

Журнал

Суббота (06/02/07)

/dev/pts/2
12:03:00
#squid -k reconfigure

12:03:01
#vim /etc/squid/squid.conf
12:03:37
#vim /usr/share/squid/errors/Russian-koi8-r/
12:03:37
#vim /usr/share/squid/errors/Russian-koi8-r/ERR_ACCESS_DENIED
12:04:05
#iconv -fKOI8-R -t UF8 /usr/share/squid/errors/Russian-koi8-r/ERR_ACCESS_DENIED
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
iconv: conversion to `UF8' is not supportedccepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:04:42
#iconv -fKOI8-R -t UTF8 /usr/share/squid/errors/Russian-koi8-r/ERR_ACCESS_DENIED
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=koi8-r">
<TITLE>ОШИБКА: Запрошенный URL не может быть доставлен</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ОШИБКА</H1>
<H2>Запрошенный URL не может быть доставлен</H2>
<HR noshade size="1px">
<P>
...
<LI>
<STRONG>
Доступ запрещен.
</STRONG>
<P>
Настройка контроля доступа не даёт возможности выполнить Ваш
запрос в настоящее время. Пожалуйста, свяжитесь с Вашим
поставщиком услуг Интернет, если Вы считаете это неправильным.
</UL>
</P>
12:04:48
#cat /usr/share/squid/errors/E
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
English/  Estonian/ lt "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:04:48
#cat /usr/share/squid/errors/E
English/  Estonian/
12:04:48
#cat /usr/share/squid/errors/English/ERR_ACCESS_DENIED
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>mitted in cache.log
<HR noshade size="1px">HTTP error is encountered.
<P>
While trying to retrieve the URL: HTTP errors will cause the request
<A HREF="%U">%U</A> to be rejected.
<P>
The following error was encountered:
<UL>laxed_header_parser on
<LI>
<STRONG>                                                                                        4348,0-1    Внизу
:set number
Access Denied.
</STRONG>
<P>
Access control configuration prevents your request from
being allowed at this time.  Please contact your service provider if
you feel this is incorrect.
</UL>
<P>Your cache administrator is <A HREF="mailto:%w">%w</A>.
12:05:24
#vim /usr/share/squid/errors/Russian-koi8-r/ERR_ACCESS_DENIED
12:05:40
#cat /usr/share/squid/errors/English/ERR_ACCESS_DENIED
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
...
<LI>
<STRONG>
Access Denied.
</STRONG>
<P>
Access control configuration prevents your request from
being allowed at this time.  Please contact your service provider if
you feel this is incorrect.
</UL>
<P>Your cache administrator is <A HREF="mailto:%w">%w</A>.
12:05:41
#vim /usr/share/squid/errors/Russian-koi8-r/ERR_ACCESS_DENIED
24a25
> <P>Your cache administrator is <A HREF="mailto:%w">%w</A>.
12:06:03
#squid -k reconfigure

12:06:14
#vim /etc/squid/squid.conf
1800,1804c1800,1804
< #auth_param basic program <uncomment and complete this line>
< #auth_param basic children 5
< #auth_param basic realm Squid proxy-caching web server
< #auth_param basic credentialsttl 2 hours
< #auth_param basic casesensitive off
---
> auth_param basic program /usr/lib/squid/ncsa_auth 
> auth_param basic children 5
> auth_param basic realm Squid proxy-caching web server
> auth_param basic credentialsttl 2 hours
> auth_param basic casesensitive off
12:09:59
#. /etc/bash_completion
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:10:18
#dpkg -S squid
squid-common: /usr/share/squid/errors/English/ERR_WRITE_ERROR
squid-common: /usr/share/squid/errors/Russian-koi8-r/ERR_URN_RESOLVE
squid-common: /usr/share/squid/errors/Bulgarian/ERR_TOO_BIG
squid-common: /usr/share/squid/errors/Bulgarian/ERR_INVALID_RESP
squid-common: /usr/share/squid/errors/Bulgarian/ERR_CANNOT_FORWARD
squid-common: /usr/share/squid/errors/Hebrew/ERR_SOCKET_FAILURE
squid-common: /usr/share/doc/squid/README.auth_module.digest_pw_auth.gz
squid-common: /usr/share/squid/icons/anthony-layout.gif
squid: /usr/lib/squid
squid-common: /usr/share/squid/errors/Korean/ERR_INVALID_REQ
...
squid-common: /usr/share/squid/errors/Turkish/README
squid-common: /usr/share/squid/errors/Italian/ERR_CACHE_MGR_ACCESS_DENIED
squid-common: /usr/share/squid/errors/Dutch/ERR_UNSUP_REQ
squid-common: /usr/share/squid/errors/Serbian/ERR_SHUTTING_DOWN
squid-common: /usr/share/squid/errors/Catalan/ERR_URN_RESOLVE
squid-common: /usr/share/squid/errors/Swedish/ERR_FTP_NOT_FOUND
squid-common: /usr/share/squid/errors/Slovak/ERR_FTP_PUT_CREATED
squid-common: /usr/share/squid/errors/Hebrew/ERR_READ_TIMEOUT
squid-common: /usr/share/squid/errors/Hebrew/ERR_FORWARDING_DENIED
squid-common: /usr/share/squid/errors/German/ERR_UNSUP_REQ
12:10:34
#dpkg -S squid | grep /usr/lib/nc*
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:10:48
#dpkg -S squid | grep /usr/lib/squid/nc*
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
squid: /usr/lib/squid/ncsa_authting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:11:01
#dpkg -S squid
squid-common: /usr/share/squid/errors/Catalan/ERR_INVALID_REQ
squid-common: /usr/share/squid/errors/Russian-1251/ERR_READ_ERROR
squid-common: /usr/share/squid/errors/Catalan/ERR_NO_RELAY
squid-common: /usr/share/squid/errors/Lithuanian/ERR_CACHE_MGR_ACCESS_DENIED
squid-common: /usr/share/squid/errors/Hebrew/ERR_WRITE_ERROR
squid-common: /usr/share/doc/squid/README.transparent-proxy.gz
squid-common: /usr/share/squid/errors/Lithuanian/ERR_SHUTTING_DOWN
squid-common: /usr/share/squid/errors/Hebrew/README
squid-common: /usr/share/squid/errors/Slovak/ERR_FTP_PUT_MODIFIED
squid-common: /usr/share/squid/errors/Czech/ERR_SHUTTING_DOWN
squid-common: /usr/share/squid/errors/Turkish/README
squid-common: /usr/share/squid/errors/Italian/ERR_CACHE_MGR_ACCESS_DENIED
squid-common: /usr/share/squid/errors/Dutch/ERR_UNSUP_REQ
squid-common: /usr/share/squid/errors/Serbian/ERR_SHUTTING_DOWN
squid-common: /usr/share/squid/errors/Catalan/ERR_URN_RESOLVE
squid-common: /usr/share/squid/errors/Swedish/ERR_FTP_NOT_FOUND
squid-common: /usr/share/squid/errors/Slovak/ERR_FTP_PUT_CREATED
squid-common: /usr/share/squid/errors/Hebrew/ERR_READ_TIMEOUT
squid-common: /usr/share/squid/errors/Hebrew/ERR_FORWARDING_DENIED
squid-common: /usr/share/squid/errors/German/ERR_UNSUP_REQ
12:11:27
#dpkg -S squid | grep ncsa
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
squid: /usr/lib/squid/ncsa_authting Squid accepts certain forms
squid-common: /usr/share/doc/squid/README.auth_module.ncsa_auth.gz
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:12:21
#vim /etc/squid/squid.conf
12:14:29
#squid -k reconfigure
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:14:33
#htpasswd -c /etc/squid/passwd user
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
New password:  default "on" setting Squid accepts certain forms
Re-type new password: nt HTTP messages where it is unambiguous
Adding password for user userication intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:15:06
#cat /etc/squid/passwd
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
user:pjhphnHrJC69Yault "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:15:42
#rm /etc/squid/passwd
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:16:13
#touch /etc/squid/passwd
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:16:17
#htpasswd -c /etc/squid/passwd user
New password:
Re-type new password:
Adding password for user user
12:16:31
#cat /etc/squid/passwd
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
user:rIiasCNZFB2/Iault "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:16:33
#jo
jobs  join
12:16:33
#ls
!  1  awk  install  john-1.7.0.2  john-1.7.0.2.tar.gz  Mail  mbox  print  q  sent  sshd_config.new  wall
12:16:42
#cd john-1.7.0.2/
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
doc/ run/ src/ default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:16:42
#cd john-1.7.0.2/run/

12:16:54
#ls
all.chr    alpha.chr   john       john.log  john.rec    mailer        unafs   unshadow
alnum.chr  digits.chr  john.conf  john.pot  lanman.chr  password.lst  unique
12:16:55
#./john /etc/squid/passwd
Loaded 1 password hash (Traditional DES [24/32 4K])
password         (user)
guesses: 1  time: 0:00:00:00 100% (2)  c/s: 22000  trying: 12345 - boomer
12:17:03
#cat /etc/squid/passwd
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:17:41
#squid -k reconfigure
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
squid: ERROR: Could not send signal 1 to process 25229: (3) No such process
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:17:52
#/etc/init.d/squid start
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
Starting Squid HTTP proxy: squid.ng Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:18:03
#htpasswd -c /etc/squid/passwd test
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
New password:  default "on" setting Squid accepts certain forms
Re-type new password: nt HTTP messages where it is unambiguous
Adding password for user testication intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:20:36
#rm /etc/squid/passwd
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:22:36
#htpasswd -c /etc/squid/passwd user
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
New password:  default "on" setting Squid accepts certain forms
Re-type new password: nt HTTP messages where it is unambiguous
Adding password for user userication intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:22:47
#ls -l /etc/squid/passwd
-rw-r--r-- 1 root root 19 2007-06-02 12:22 /etc/squid/passwd
12:22:52
#vim /etc/squid/squid.conf
2573c2573
< acl pass proxy_auth REQUIRE
---
> acl pass proxy_auth REQUIRED
12:23:37
#squid -k reconfigure

12:23:40
#vim /etc/squid/squid.conf
12:31:37
#cd

12:31:38
#vim .vimrc
12:31:49
#vim /etc/squid/squid.conf
2573a2574,2575
> acl no_google dstdomain .google.com
> 
2576a2579
> http_access deny no_google
прошло 16 минут
12:48:06
#squid -k reconfigure

12:48:09
#vim /etc/squid/squid.conf
12:50:30
#squid -k reconfigure
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
2007/06/02 12:50:34| ACL name 'no_google' not defined!ain forms
FATAL: Bungled squid.conf line 2579: http_access deny no_google
Squid Cache (Version 2.6.STABLE5): Terminated abnormally. message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:50:34
#vim /etc/squid/squid.conf
2574c2574
< acl no_goolge url_regex -i search
---
> acl no_google url_regex -i search
12:50:59
#squid -k reconfigure

12:51:00
#ls
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
!  awk      john-1.7.0.2on" sett Mail  print  redirector-3.2.1.tgz  sshd_config.new
1  install  john-1.7.0.2.tar.gz  mbox  q      sent unambiguous      wall
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:55:01
#tar xvzfC redirector-3.2.1.tgz /usr/src
redirector-3.2.1/ip.c
redirector-3.2.1/load_cache.c
redirector-3.2.1/load_urls.c
redirector-3.2.1/make-cache.c
redirector-3.2.1/need_cache_update.c
redirector-3.2.1/new_url.c
redirector-3.2.1/now.c
redirector-3.2.1/parse_input.c
redirector-3.2.1/parse_urls.c
redirector-3.2.1/pcre.c
redirector-3.2.1/prune_urls.c
redirector-3.2.1/redirect.c
redirector-3.2.1/redirector.c
redirector-3.2.1/redirector.conf.dist
redirector-3.2.1/run_make_cache.c
redirector-3.2.1/vars.h
redirector-3.2.1/write_cache.c
redirector-3.2.1/raw_change.c
redirector-3.2.1/pass.c
redirector-3.2.1/Log
12:55:23
#vim /usr/src/redirector-3.2.1/
12:55:43
#vipw
 15 list:x:38:38:Mailing List Manager:/var/list:/bin/sh
 16 irc:x:39:39:ircd:/var/run/ircd:/bin/sh
 17 gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
 18 nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
 19 dictd:x:100:102::/var/lib/dictd:/bin/false
 20 Debian-exim:x:101:103::/var/spool/exim4:/bin/false
 21 statd:x:102:65534::/var/lib/nfs:/bin/false
"/etc/passwd.edit" 32L, 1495C
 22 identd:x:103:65534::/var/run/identd:/bin/false
 23 messagebus:x:104:105::/var/run/dbus:/bin/false
...
 28 user:x:1000:1000:user,,,:/home/user:/bin/bash
~
~
~
~
~
~
~
~
vipw: /etc/passwd не был изменён
12:55:54
#vim /usr/src/redirector-3.2.1/
12:56:26
#dpkg -l | grep libpcre
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
ii  libpcre3                          6.7-1                           Perl 5 Compatible Regular Expression Library
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:56:42
#apt-get install libpcre3-dev
Построение дерева зависимостей... Готово
Будут установлены следующие дополнительные пакеты:
  libpcrecpp0t correctly formatted. The messages is then normalized
НОВЫЕ пакеты, которые будут установлены:
  libpcre3-dev libpcrecpp0
обновлено 0, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 278kБ архивов.
После распаковки объем занятого дискового пространства возрастёт на 700kB.
Хотите продолжить [Д/н]? ys will cause the request
Получено:1 http://debian.org.ua etch/main libpcrecpp0 6.7-1 [70,6kB]
Получено:2 http://debian.org.ua etch/main libpcre3-dev 6.7-1 [207kB]
Получено 278kB за 2s (139kB/c)
Выбор ранее не выбранного пакета libpcrecpp0.
(Чтение базы данных... на данный момент установлено 90633 файлов и каталогов.)
Распаковывается пакет libpcrecpp0 (из файла .../libpcrecpp0_6.7-1_i386.deb)...   Внизу
:set number
Выбор ранее не выбранного пакета libpcre3-dev.
Распаковывается пакет libpcre3-dev (из файла .../libpcre3-dev_6.7-1_i386.deb)...
Настраивается пакет libpcrecpp0 (6.7-1) ...
Настраивается пакет libpcre3-dev (6.7-1) ...
12:57:21
#cd /usr/src/

12:57:25
#cd redirector-3.2.1/

12:57:26
#make
prune_urls.c:232: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
gcc -Wall -I/usr/include -I/usr/local/include -I/usr/include/pcre -c write_cache.c
write_cache.c: In function ‘write_cache’:
write_cache.c:37: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
write_cache.c:93: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
gcc -Wall -I/usr/include -I/usr/local/include -I/usr/include/pcre -c need_cache_update.c
gcc -Wall -I/usr/include -I/usr/local/include -I/usr/include/pcre -o redirector redirector.c -L/lib `pcre-config --libs` pass.o raw_change.o load_cache.o pcre.o parse_input.o init_vars.o check_urls.o run_make_cache.o new_url.o redirect.o err_mes.o now.o get_opt.o parse_urls.o cache2url.o ip.o id.o comparing.o
redirector.c: In function ‘main’:
redirector.c:29: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
redirector.c:38: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
redirector.c:51: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness
redirector.c:53: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
redirector.c:54: warning: pointer targets in passing argument 1 of ‘printf’ differ in signedness
redirector.c:69: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness
redirector.c:78: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
redirector.c:79: warning: pointer targets in passing argument 1 of ‘err_mes’ differ in signedness
redirector.c:133: warning: pointer targets in passing argument 2 of ‘parse_urls’ differ in signedness
redirector.c:136: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
redirector.c:137: warning: pointer targets in passing argument 1 of ‘err_mes’ differ in signedness
gcc -Wall -I/usr/include -I/usr/local/include -I/usr/include/pcre -o make-cache make-cache.c -L/lib `pcre-config --libs` load_urls.o prune_urls.o write_cache.o need_cache_update.o err_mes.o now.o get_opt.o parse_urls.o cache2url.o ip.o id.o comparing.o
12:57:34
#echo $?
0
12:57:44
#make install
cp make-cache /usr/local/rejik3essages where it is unambiguous
cp redirector /usr/local/rejik3ation intended even if the message
cp redirector.conf.dist /usr/local/rejik3essages is then normalized
echo "#!/bin/sh" > /usr/local/rejik3/tools/check-redirector
echo 'su proxy -c "echo \"http://sex.ru 127.0.0.1/- - GET\" | /usr/local/rejik3/redirector /usr/local/rejik3/redirector.conf;"' >> /usr/local/rejik3/tools/check-redirector
chmod 755  /usr/local/rejik3/tools/check-redirectortted in cache.log
echo "#!/bin/sh" > /usr/local/rejik3/tools/set-permissions
echo 'chown -R proxy:proxy /usr/local/rejik3' >> /usr/local/rejik3/tools/set-permissions
chmod 755  /usr/local/rejik3/tools/set-permissions cause the request
cp tools/kill-cache /usr/local/rejik3/tools
chmod 755  /usr/local/rejik3/tools/kill-cache
cp tools/benchmark /usr/local/rejik3/tools
chmod 755  /usr/local/rejik3/tools/benchmark
cp tools/IN.gz /usr/local/rejik3/tools
chmod 644 /usr/local/rejik3/tools/IN.gz                                                         4348,0-1    Внизу
:set number
chown -R proxy:proxy /usr/local/rejik3
chmod 770 /usr/local/rejik3
chmod 644 /usr/local/rejik3/redirector.conf.dist
chmod 755 /usr/local/rejik3/redirector
chmod 755 /usr/local/rejik3/make-cache
12:57:49
#ls /usr/local/rejik3/
make-cache  redirector  redirector.conf.dist  tools
12:58:00
#cd /usr/local/rejik3/
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
12:58:09
#cp redirector.conf.dist redirector.conf

12:58:18
#vim redirector.conf
70,72c70,72
< error_log /usr/local/rejik3/redirector.err
< change_log /usr/local/rejik3/redirector.log
< make-cache /usr/local/rejik3/make-cache
---
> error_log /var/log/squid/redirector.err
> change_log /var/log/squid/redirector.log
> make-cache /var/log/squid/make-cache
12:59:29
#cd
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:00:41
#ls
!  awk                 install       john-1.7.0.2.tar.gz  mbox   q                     sent             wall
1  banlists-2.x.x.tgz  john-1.7.0.2  Mail                 print  redirector-3.2.1.tgz  sshd_config.new
13:00:42
#tar xvzfC banlists-2.x.x.tgz /usr/local/rejik3/
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
banlists/n the default "on" setting Squid accepts certain forms
banlists/porno/compliant HTTP messages where it is unambiguous
banlists/porno/urlsnding application intended even if the message
banlists/banners/rrectly formatted. The messages is then normalized
banlists/banners/urlst form when forwarded by Squid.
banlists/banners/pcre
banlists/js/et to "warn" then a warning will be emitted in cache.log
banlists/js/urlse such HTTP error is encountered.
banlists/mp3/
banlists/mp3/pcre "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:01:00
#apt-get install apache
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
Чтение списков пакетов... Готовоforms
Построение дерева зависимостей... Готово
Уже установлена самая новая версия apache.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:01:32
#netstat -lnp | grep :80
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     2931/apache
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:01:40
#ls
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
!  awk  In the d       installtt     john-1.7.0.2.tar.gz  mboxs  q                     sent             wall
1  banlists-2.x.x.tgz  john-1.7.0.2  Mailere it is unamb  print  redirector-3.2.1.tgz  sshd_config.new
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:02:45
#ls
!  awk                 install       john-1.7.0.2.tar.gz  mbox   q                     sent             wall
1  banlists-2.x.x.tgz  john-1.7.0.2  Mail                 print  redirector-3.2.1.tgz  sshd_config.new  www.tgz
13:02:56
#tar xvzfC www.tgz /var/www/
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
www/    In the default "on" setting Squid accepts certain forms
www/1x1.gifnon-compliant HTTP messages where it is unambiguous
www/js.jshat the sending application intended even if the message
www/mp3.htmlot correctly formatted. The messages is then normalized
www/porno.html correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:03:19
#vim /usr/local/rejik3/
13:03:19
#vim /usr/local/rejik3/redirector.conf
13:04:11
#mv /var/www/www/ /var/www/ban
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:04:29
#vim /etc/apache
13:04:49
#ls -ld /var/www/ban
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
drwxr-xr-x 2 root root 4096 2002-11-26 15:37 /var/www/ban forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:04:54
#vim /usr/local/rejik3/redirector.conf
13:05:11
#vim /etc/apache/httpd.conf
13:05:54
#netstat -lnp | grep :80
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     2931/apache
13:06:01
#vim /etc/squid/squid.conf
1464c1464
< 
---
> url_rewrite_program /usr/local/rejik3/redirector /usr/local/rejik3/redirector.conf
13:07:44
#ls -l /usr/local/rejik3/
итого 100
drwxr-xr-x 6 nobody nogroup  4096 2003-07-25 08:02 banlists
-rwxr-xr-x 1 proxy  proxy   39108 2007-06-02 12:57 make-cache
-rwxr-xr-x 1 proxy  proxy   43897 2007-06-02 12:57 redirector
-rw-r--r-- 1 root   root     3043 2007-06-02 12:59 redirector.conf
-rw-r--r-- 1 proxy  proxy    3052 2007-06-02 12:57 redirector.conf.dist
drwxr-sr-x 2 proxy  proxy    4096 2007-06-02 12:57 tools
13:07:57
#chown -R proxy:proxy /usr/local/rejik3/
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:08:32
#ls -l /usr/local/rejik3/
итого 100
drwxr-xr-x 6 proxy proxy  4096 2003-07-25 08:02 banlists
-rwxr-xr-x 1 proxy proxy 39108 2007-06-02 12:57 make-cache
-rwxr-xr-x 1 proxy proxy 43897 2007-06-02 12:57 redirector
-rw-r--r-- 1 proxy proxy  3043 2007-06-02 12:59 redirector.conf
-rw-r--r-- 1 proxy proxy  3052 2007-06-02 12:57 redirector.conf.dist
drwxr-sr-x 2 proxy proxy  4096 2007-06-02 12:57 tools
13:08:33
#/usr/local/rejik3/tools/check-redirector
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:08:50
#. /usr/local/rejik3/tools/check-redirector
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:09:09
#ls -l /var/www/ban/
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
итого 12e default "on" setting Squid accepts certain forms
-rw-r--r-- 1 nobody   98  43 2002-11-13 07:13 1x1.gifambiguous
-rw-r--r-- 1 root   root   0 2002-11-26 15:02 js.jsif the message
-rw-r--r-- 1 nobody   98 624 2002-12-24 13:14 mp3.htmlen normalized
-rw-r--r-- 1 root   root 649 2002-12-24 13:13 porno.html
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:09:37
#squid -k reconfigure
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
#       In the default "on" setting Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:10:30
#ps aux | grep squit
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
root     26489  0.0  0.0   3740   760 pts/3    R+   13:11   0:00 grep squit
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:11:00
#ps aux | grep squid
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
root     26496  0.0  0.0   3744   764 pts/3    R+   13:11   0:00 grep squid
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:11:03
#/etc/init.d/squid stop
Stopping Squid HTTP proxy: squid.
13:11:13
#/etc/init.d/squid start
Starting Squid HTTP proxy: squid.
13:11:16
#telnet 192.168.14.2 3128
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
Trying 192.168.14.2... "on" setting Squid accepts certain forms
telnet: Unable to connect to remote host: Connection refusedus
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number
13:11:24
#less /var/log/daemon.log
13:11:53
#less /var/log/daemon.log
13:12:24
#/etc/init.d/apache
apache   apache2
13:12:24
#/etc/init.d/apache restart
4308 #       When this is set to a non-zero value, the main Squid process
4309 #       sleeps the specified number of microseconds after a fork()
4310 #       system call. This sleep may help the situation where your
4311 #       system reports fork() failures due to lack of (virtual)
4312 #       memory. Note, however, that if you have a lot of child
Restarting apache 1.3 web server....Squid accepts certain forms
#       of non-compliant HTTP messages where it is unambiguous
#       what the sending application intended even if the message
#       is not correctly formatted. The messages is then normalized
#       to the correct form when forwarded by Squid.
#
#       If set to "warn" then a warning will be emitted in cache.log
#       each time such HTTP error is encountered.
#
#       If set to "off" then such HTTP errors will cause the request
#       or response to be rejected.
#
#Default:
# relaxed_header_parser on
                                                                                                4348,0-1    Внизу
:set number

Файлы

  • /etc/squid/passwd
  • /usr/share/squid/errors/E
  • /usr/share/squid/errors/English/ERR_ACCESS_DENIED
  • /etc/squid/passwd
    >
    4308 #       When this is set to a non-zero value, the main Squid process
    4309 #       sleeps the specified number of microseconds after a fork()
    4310 #       system call. This sleep may help the situation where your
    4311 #       system reports fork() failures due to lack of (virtual)
    4312 #       memory. Note, however, that if you have a lot of child
    user:rIiasCNZFB2/Iault "on" setting Squid accepts certain forms
    #       of non-compliant HTTP messages where it is unambiguous
    #       what the sending application intended even if the message
    #       is not correctly formatted. The messages is then normalized
    #       to the correct form when forwarded by Squid.
    #
    #       If set to "warn" then a warning will be emitted in cache.log
    #       each time such HTTP error is encountered.
    #
    #       If set to "off" then such HTTP errors will cause the request
    #       or response to be rejected.
    #
    #Default:
    # relaxed_header_parser on
                                                                                                    4348,0-1    Внизу
    :set number
    
    /usr/share/squid/errors/E
    >
    English/  Estonian/
    
    /usr/share/squid/errors/English/ERR_ACCESS_DENIED
    >
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <TITLE>ERROR: The requested URL could not be retrieved</TITLE>
    <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
    </HEAD><BODY>
    <H1>ERROR</H1>
    <H2>The requested URL could not be retrieved</H2>
    <HR noshade size="1px">
    <P>
    While trying to retrieve the URL:
    <A HREF="%U">%U</A>
    <P>
    The following error was encountered:
    <UL>
    <LI>
    <STRONG>
    Access Denied.
    </STRONG>
    <P>
    Access control configuration prevents your request from
    being allowed at this time.  Please contact your service provider if
    you feel this is incorrect.
    </UL>
    <P>Your cache administrator is <A HREF="mailto:%w">%w</A>.
    

    Статистика

    Время первой команды журнала12:03:00 2007- 6- 2
    Время последней команды журнала13:12:24 2007- 6- 2
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %12.87
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 1.16
    Количество командных строк в единицу времени, команда/мин 1.46
    Частота использования команд
    vim22|====================| 20.18%
    ls12|===========| 11.01%
    squid9|========| 8.26%
    grep8|=======| 7.34%
    cd7|======| 6.42%
    cat7|======| 6.42%
    dpkg6|=====| 5.50%
    htpasswd4|===| 3.67%
    /etc/init.d/squid3|==| 2.75%
    tar3|==| 2.75%
    ps2|=| 1.83%
    make2|=| 1.83%
    rm2|=| 1.83%
    .2|=| 1.83%
    netstat2|=| 1.83%
    less2|=| 1.83%
    apt-get2|=| 1.83%
    /etc/init.d/apache2|=| 1.83%
    iconv2|=| 1.83%
    touch1|| 0.92%
    telnet1|| 0.92%
    check-redirector1|| 0.92%
    chown1|| 0.92%
    cp1|| 0.92%
    john1|| 0.92%
    echo1|| 0.92%
    jo1|| 0.92%
    mv1|| 0.92%
    vipw1|| 0.92%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ find / -name abc
      find: /home/devi-orig/.gnome2: Keine Berechtigung
      find: /home/devi-orig/.gnome2_private: Keine Berechtigung
      find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
      find: /home/devi-orig/.metacity: Keine Berechtigung
      find: /home/devi-orig/.inkscape: Keine Berechtigung
      ^C
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$