ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Vladimir V. Kamarzin" <vvk@vvk.pp.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] iptables, ulog-acctd как писать информацию в разные файлы
Date: Tue, 14 Nov 2006 16:35:27 +0500
Message-ID: <m3y7qetg5c.fsf@vvk.distance.ru> (raw)
In-Reply-To: <455992B7.2030802@og.brother-ttc.ru> (georg l. k.'s message of "Tue, 14 Nov 2006 12:56:07 +0300")

>>>>> On 14 Nov 2006 at 14:56 "glk" == georg l k writes:

 glk> Все эти ковыряния с ulog-acctd начались с нужды
 glk> писать в файл имя ppp-пользователя и адреса с которого он установил 
 glk> соединение.

Вот так вот прпатчьте pppd:

--- ppp-2.4.2_/pppd/auth.c      2006-08-23 23:28:38 +0400
+++ ppp-2.4.2/pppd/auth.c       2006-08-24 00:05:17 +0400
@@ -2430,7 +2430,8 @@
   argv[3] = user_name;
   argv[4] = devnam;
   argv[5] = strspeed;
-    argv[6] = NULL;
+    argv[6] = ipparam;
+    argv[7] = NULL;

   auth_script_pid = run_program(script, argv, 0, auth_script_done, NULL);
}

(патч мне несколько месяцев назад прислал Александр Новосёлов)
Повесил https://bugzilla.altlinux.org/show_bug.cgi?id=10270

-- 
vvk

Russian Postfix irc: irc.freenode.net #postfix-ru


  parent reply	other threads:[~2006-11-14 11:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-14  9:56 georg l k.
2006-11-14 10:31 ` Eugene Prokopiev
2006-11-14 11:35 ` Vladimir V. Kamarzin [this message]
2006-11-14 11:42 ` Grigory Fateyev
2006-11-14 13:04   ` Grigory Fateyev

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=m3y7qetg5c.fsf@vvk.distance.ru \
    --to=vvk@vvk.pp.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