ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "georg l k." <altlinux@og.brother-ttc.ru>
To: sysadmins@lists.altlinux.org
Subject: [Sysadmins] iptables, ulog-acctd как писать информацию в разные файлы
Date: Mon, 13 Nov 2006 12:58:05 +0300
Message-ID: <455841AD.20201@og.brother-ttc.ru> (raw)

Подскажите, как сделать так что бы из iptables через ulog-acctd писать 
информацию в разные файлы.
то есть если я пишу
iptables -I INPUT -i $EXTINT -p tcp --dport 1723 -m state --state NEW -j 
ULOG --ulog-nlgroup 1 --ulog-prefix "PPTP ACCESS"
то в /var/log/ulog-acctd/account.log появляется нужная мне строчка.
(появляется с приличной задержкой после установки ppp-соединения. немогу 
сообразить почему...)
Можно но ли писать именно этот вызов из iptables например в 
/var/log/ppp/ulog-ppp.log
А в последствии, что то другое по -j ULOG отправлять в другой файл.
Не сваливать все в один файл....
Ясно что все крутится вокруг --ulog-nlgroup [1...32], но я так и не 
понял как в /etc/ulog-acctd.conf связать этот
[1...32] с его file= и format=


             reply	other threads:[~2006-11-13  9:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-13  9:58 georg l k. [this message]
2006-11-13 13:34 ` Eugene Prokopiev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=455841AD.20201@og.brother-ttc.ru \
    --to=altlinux@og.brother-ttc.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git