OpenVZ Forum


Home » General » Support » Iptables logging on VPS not working
Re: Iptables logging on VPS not working [message #1976 is a reply to message #1898] Fri, 10 March 2006 15:45 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

For the historical reasons klogd was disabled in template. In your case you need to enable it. If you use precreated template, the best way to do it is to take the original /etc/init.d/syslog file from sysklogd rpm and put it into your VPS.

If you use template tools and use vzpkgcache to create a template, edit the /vz/template/centos/4/(your-arch)/config/install-post file and remove (or comment out) these lines:
# Disable klogd
$VZCTL exec2 $VEID \
        "sed -i -e 's/daemon\\ klogd/passed\\ klogd\\ skipped/' \
                -e 's/killproc\\ klogd/passed\\ klogd\\ skipped/' \
                        /etc/init.d/syslog"
# FIXME: fix '/etc/init.d/syslog status' to return 0
# even if klogd is not running


After that, run vzpkgcache -f to forcibly recreate the template cache, and then create a new VPS. It will have klogd running.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Previous Topic: DAHDI doesn't compile with OVZ Kernel
Next Topic: Kernel 2.6.32-5-openvz-amd64 & CPULIMIT
Goto Forum:
  


Current Time: Wed Oct 16 00:22:51 GMT 2024

Total time taken to generate the page: 0.04840 seconds