/l3/users/29-05-2007/nt-lnet/linux1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 |
|
#vim /etc/squid/squid.conf
|
#vim /usr/share/squid/errors/Russian-koi8-r/
|
#vim /usr/share/squid/errors/Russian-koi8-r/ERR_ACCESS_DENIED
|
#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 |
#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> |
#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 |
#cat /usr/share/squid/errors/E
English/ Estonian/ |
#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>. |
#vim /usr/share/squid/errors/Russian-koi8-r/ERR_ACCESS_DENIED
|
#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>. |
#vim /usr/share/squid/errors/Russian-koi8-r/ERR_ACCESS_DENIED
24a25 > <P>Your cache administrator is <A HREF="mailto:%w">%w</A>. |
#squid -k reconfigure
|
#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 |
#. /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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#vim /etc/squid/squid.conf
|
#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 |
#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 |
#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 |
#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 |
#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 |
#htpasswd -c /etc/squid/passwd user
New password: Re-type new password: Adding password for user user |
#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 |
#jo
jobs join |
#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 |
#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 |
#cd john-1.7.0.2/run/
|
#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 |
#./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 |
#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 |
#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 |
#/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 |
#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 |
#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 |
#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 |
#ls -l /etc/squid/passwd
-rw-r--r-- 1 root root 19 2007-06-02 12:22 /etc/squid/passwd |
#vim /etc/squid/squid.conf
2573c2573 < acl pass proxy_auth REQUIRE --- > acl pass proxy_auth REQUIRED |
#squid -k reconfigure
|
#vim /etc/squid/squid.conf
|
#cd
|
#vim .vimrc
|
#vim /etc/squid/squid.conf
2573a2574,2575 > acl no_google dstdomain .google.com > 2576a2579 > http_access deny no_google |
#squid -k reconfigure
|
#vim /etc/squid/squid.conf
|
#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 |
#vim /etc/squid/squid.conf
2574c2574 < acl no_goolge url_regex -i search --- > acl no_google url_regex -i search |
#squid -k reconfigure
|
#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 |
#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 |
#vim /usr/src/redirector-3.2.1/
|
#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 не был изменён |
#vim /usr/src/redirector-3.2.1/
|
#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 |
#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) ... |
#cd /usr/src/
|
#cd redirector-3.2.1/
|
#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 |
#echo $?
0 |
#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 |
#ls /usr/local/rejik3/
make-cache redirector redirector.conf.dist tools |
#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 |
#cp redirector.conf.dist redirector.conf
|
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#vim /usr/local/rejik3/
|
#vim /usr/local/rejik3/redirector.conf
|
#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 |
#vim /etc/apache
|
#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 |
#vim /usr/local/rejik3/redirector.conf
|
#vim /etc/apache/httpd.conf
|
#netstat -lnp | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2931/apache |
#vim /etc/squid/squid.conf
1464c1464 < --- > url_rewrite_program /usr/local/rejik3/redirector /usr/local/rejik3/redirector.conf |
#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 |
#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 |
#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 |
#/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 |
#. /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 |
#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 |
#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 |
#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 |
#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 |
#/etc/init.d/squid stop
Stopping Squid HTTP proxy: squid. |
#/etc/init.d/squid start
Starting Squid HTTP proxy: squid. |
#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 |
#less /var/log/daemon.log
|
#less /var/log/daemon.log
|
#/etc/init.d/apache
apache apache2 |
#/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 |
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
English/ Estonian/
<!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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008