classical |
03-29-2011 05:47 AM |
debian lenny iptables does not logs
hello everybody.
I have problem with loging, actually iptables logs a data but it seems that for some reasons does not writes in a log file:
Code:
iptables -L -v
Chain INPUT (policy ACCEPT 406 packets, 124K bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- any any xxxxxxxxxxx anywhere tcp dpt:xxxx
0 0 ACCEPT udp -- any any xxxxxxxxxxx anywhere udp dpt:xxxx
322 23848 LOG tcp -- any any anywhere anywhere tcp dpt:ssh LOG level warning
0 0 ACCEPT tcp -- any any xxxxxxxxxxx anywhere tcp dpt:ssh
322 23848 ACCEPT tcp -- any any xxxxxxx anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- any any xxxxxxxxxx anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- any any xxxxxxxxxx anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- any any xxxxxxxxxx anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- any any xxxxxxxxxxx anywhere tcp dpt:ssh
i checked /var/log/message and /var/log/syslog nothing is here related to iptables. then i create separate file for Iptables by adding this: kern.warning /var/log/iptables.log in my rsyslog.conf it does create iptables.log file inside /var/ but its still empty need some help to figure out how to fix this
|