ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Александр Новосёлов" <n_list@mail.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] Логирование pptpd
Date: Wed, 20 Jun 2007 22:58:39 +0400
Message-ID: <200706202258.39911.n_list@mail.ru> (raw)
In-Reply-To: <00b301c7b319$07ac86d0$0200a8c0@mics.local>

В сообщении от 20 июня 2007 Дорогов Николай написал(a):
> Здравствуйте все!
> Необходимо сделать так что бы VPN(pptpd) писал логи входов не в message,
> а в отдельный файл. В настройке syslog, есть возмоность указать группу,
> например local3, но для использования этого метода необходимо
> пересобирать pptpd, дабы добавить в конфигурацию LOG_LOCAL3, что
> нехочется, поскольку ставил его из RPM присутствующем в master 2.4
>
> Вторым вариантом приходит мысль парсить grep'ом message, что также не
> очень интерестно. Есть ли еще варианты, настройки pptpd или syslog,
> реализующие запись логов подключающихся по VPN пользователей.

ip-down.d

#!/bin/bash

DATETIME=`/bin/date '+%s'`

MYSQL="mysql vpn -h 192.168.0.1 -u 
sdcdcsc --password=sdcsdcscsd --skip-column-names"

$MYSQL -B -e  "insert into vpnstats values 
('$DATETIME','$PEERNAME','$IPREMOTE','$BYTES_SENT','$BYTES_RCVD','$CONNECT_TIME','${IFNAME:3}','$6');"







       reply	other threads:[~2007-06-20 18:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-20 18:58 ` Александр Новосёлов [this message]
2007-06-20 19:14   ` Mikhail A. Pokidko
2007-06-21 20:32     ` Александр Новосёлов
2007-06-21  5:09 ` Anton Kvashin

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=200706202258.39911.n_list@mail.ru \
    --to=n_list@mail.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