OpenVZ Forum


Home » General » Support » Installing CSF in hardware node (Installing CSF in hardware node)
Re: Installing CSF in hardware node [message #45053 is a reply to message #45037] Tue, 24 January 2012 13:14 Go to previous messageGo to previous message
mangelot is currently offline  mangelot
Messages: 14
Registered: January 2012
Junior Member
in /etc/csf folder create an file "csfpre.sh"
add following inside:

iptables -A INPUT -i venet0 -j ACCEPT
iptables -A OUTPUT -o venet0 -j ACCEPT
iptables -A FORWARD -j ACCEPT -p all -s 0/0 -i venet0
iptables -A FORWARD -j ACCEPT -p all -s 0/0 -o venet0


/etc/csf/csfpre.sh is executed before all the other iptables statements when csf is started, by default the file is not created.

the file stays there after update complete csf.
so no worries, you have to add it every time again after csf update. (/etc/csf/csf -u)

regards Marco


www.mangelot-hosting.nl
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: error with ifconfig
Next Topic: openvz vrrp (and ucarp)
Goto Forum:
  


Current Time: Sat Aug 02 11:46:44 GMT 2025

Total time taken to generate the page: 0.46555 seconds