OpenVZ Forum


Home » General » Support » iptables is not logging
iptables is not logging [message #35117] Mon, 02 March 2009 21:27 Go to next message
mfTHpoiw is currently offline  mfTHpoiw
Messages: 2
Registered: March 2009
Junior Member
Hi all,

I hope this forum is the correct place to ask my question.

I have a VPS running Ubuntu 8.04. In a script there are the following lines:

iptables -D INPUT -s $net -j LOG --log-prefix "BLACKLIST: "
iptables -D INPUT -s $net -j DROP

$net stands for 192.168.100.0/24 for example. I know that the DROP action is working. But the LOG action does not go to any of the log files.

Does somebody know what the problem is causing?

Thank you,
Timo
Re: iptables is not logging [message #35128 is a reply to message #35117] Tue, 03 March 2009 19:17 Go to previous message
mfTHpoiw is currently offline  mfTHpoiw
Messages: 2
Registered: March 2009
Junior Member
Thanks to other posts in this forum I found out that klogd was not running inside the VPS.

I was not able to get klogd working inside the VPS. "/etc/init.d/klogd start" timed out with "failed" after some minutes. I did not investigate the problem. Instead I uninstalled klogd and sysklogd packages and installed syslog-ng instead.

Without any additional work iptables log entries go to kern.log. Problem solved.
Previous Topic: Do you know how to put /vz on a different hard drive?
Next Topic: How to restart VE network
Goto Forum:
  


Current Time: Mon Aug 19 15:26:50 GMT 2024

Total time taken to generate the page: 0.03128 seconds