Log & mail
Cain Brian-BCAIN1
Brian.Cain@motorola.com
Fri, 1 Jun 2001 13:58:14 -0500
> -----Original Message-----
> From: Pablo Samela [mailto:totypoma@yahoo.com]
>
> I?am looking a way to log connections and to send this to a
> mail direction.
>
> Is this posible with iptables?
> thank?s
Pablo,
I highly doubt this is explicitly available in iptables. However,
in order to get the job done, there are several methods you could use. A
simple one might be to take the existing log that iptables creates (or grep
the relevant material out of the syslog), and mail the result. Put a cron
job on this script at your desired frequency, and that should accomplish
your goals.
Helpful reference material: `man iptables`, `man grep`, `man crontab`, `man
sh`, `man perl`....
-Brian