From: Binish A R <binishar@poornam.com>
To: netfilter@lists.netfilter.org
Subject: Re: iptables LOG options
Date: Tue, 24 May 2005 11:09:55 +0530 [thread overview]
Message-ID: <4292BE2B.3060206@poornam.com> (raw)
In-Reply-To: <4292BC01.8060202@rfgt.net>
Robert Vangel wrote:
> Binish A R wrote:
>
>> Is there any way, I can use environment variables while logging ?
>
>
> From what I can think of, no. Environmental variables are parsed then
> and there. Using $USER in your script would translate into `--log
> prefix "root NO SSH ALLOWED"' since the user you are running the
> iptables command as is root.
Yes exactly ... thats what is happening. The shell is expanding $USER as root.
I hope there was any way out to log the username :(
Thanks for the replies Robert.
next prev parent reply other threads:[~2005-05-24 5:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-24 3:38 iptables LOG options Binish A R
2005-05-24 4:00 ` Robert Vangel
2005-05-24 4:17 ` Binish A R
2005-05-24 5:01 ` Robert Vangel
2005-05-24 5:16 ` Binish A R
2005-05-24 5:30 ` Robert Vangel
2005-05-24 5:39 ` Binish A R [this message]
2005-05-24 14:43 ` Taylor, Grant
2005-05-25 6:55 ` R. DuFresne
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=4292BE2B.3060206@poornam.com \
--to=binishar@poornam.com \
--cc=netfilter@lists.netfilter.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.