Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
log iptables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
corso
n00b
n00b


Joined: 05 Feb 2004
Posts: 26
Location: barcelona

PostPosted: Mon Feb 16, 2004 4:57 pm    Post subject: log iptables Reply with quote

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
View user's profile Send private message
Javier Lopez
Guru
Guru


Joined: 13 Sep 2002
Posts: 377
Location: Barcelona

PostPosted: Mon Feb 16, 2004 11:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum