Re: iptables LOG options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux