Главная страница


ru.linux

 
 - RU.LINUX ---------------------------------------------------------------------
 From : Igor Plekhov                         2:5020/400     13 Sep 2004  02:24:19
 To : Tolikkk
 Subject : Re: iptables  ...  -j LOG
 -------------------------------------------------------------------------------- 
 
 On Fri, 10 Sep 2004 07:36:24 +0000 (UTC), Tolikkk <aek@taxpol.krasnoyarsk.su>
 wrote:
 
 > 
 >  1. Сделал сабж, логи валятся в /var/log/kernel/warnings
 >     что сделать, чтоб они были в отдельном файле?
 
 из man iptables:
 LOG
   Turn  on  kernel  logging of matching packets.  When this option is set
   for a rule, the Linux kernel will print some information on all  match-
   ing  packets  (like most IP header fields) via the kernel log (where it
   can be read with dmesg or syslogd(8)).  This is a "non-terminating tar-
   get",  i.e.  rule traversal continues at the next rule.  So if you want
   to LOG the packets you refuse, use two separate  rules  with the  same
   matching criteria, first using target LOG then DROP (or REJECT).
 
   --log-level level
                 Level of logging (numeric or see syslog.conf(5)).
 
 т.е. получаются сообщения ядра.  их обычно ловит klogd и посылает
 syslog-у.  так что в совсем отдельном файле их сделать не получится.
 в этот файл могут попасть и другие сообщения ядра.
 
 -- 
 Registered Linux User #124759
 --- ifmail v.2.15dev5.3
  * Origin: Demos online service (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 iptables ... -j LOG   Tolikkk   10 Sep 2004 11:36:24 
 Re: iptables ... -j LOG   Igor Chumak   10 Sep 2004 12:19:44 
 Re: iptables ... -j LOG   Igor Plekhov   13 Sep 2004 02:24:19 
 Re: iptables ... -j LOG   Eugene B. Berdnikov   13 Sep 2004 18:03:30 
Архивное /ru.linux/657736b3d7ed.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional