HostOnNet Blog

Installing CSF in OpenVZ Hardware Node

Looking for Linux Server Admin or WordPress Expert? We can help.

If you install CSF on OpenVZ hardware node, you won’t be able to access VPS. To fix this create a file /etc/csf/csfpre.sh with following content

[root@server12 ~]# cat /etc/csf/csfpre.sh
/sbin/iptables -A INPUT -i venet0 -j ACCEPT
/sbin/iptables -A OUTPUT -o venet0 -j ACCEPT
/sbin/iptables -A FORWARD -j ACCEPT -p all -s 0/0 -i venet0
/sbin/iptables -A FORWARD -j ACCEPT -p all -s 0/0 -o venet0

[root@server12 ~]#

Restart csf, you will be able to access VPS.

csf -r

Posted in Virtualization

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.