View previous topic :: View next topic |
Author |
Message |
corso n00b
Joined: 05 Feb 2004 Posts: 26 Location: barcelona
|
Posted: Mon Feb 16, 2004 4:57 pm Post subject: log iptables |
|
|
hola me gustaria saber como puedo mirar el log de conexiones e intentos de iptables y si no lo crea por defecto como lo puedo hacer, venga muchas gracias. |
|
Back to top |
|
|
Javier Lopez Guru
Joined: 13 Sep 2002 Posts: 377 Location: Barcelona
|
Posted: Mon Feb 16, 2004 11:14 pm Post subject: |
|
|
Yo uso el syslog-ng. En el fichero /etc/syslog-ng/etc/syslog-ng.conf tengo estas líneas:
Code: |
destination iptables { file("/var/log/iptables.log"); };
filter f_iptables { match("iptables: "); };
log { source(src); filter(f_iptables); destination(iptables); };
|
y en las reglas del iptables tengo una tal q:
Code: |
$IPTABLES -t filter -A INPUT -m limit --limit 5/minute --limit-burst 5 -j LOG --log-prefix "iptables: "
|
|
|
Back to top |
|
|
|