بایگانی

نوشته های برچسب زده شده ‘how install csf in openvz’

how install csf in openvz and Virtuozzo

7 جولای 2009 جابر 4 دیدگاه

hi

after intsalling csf on openvz and Virtuozzo Perhaps you suffer from problems in iptables

Solution to this problem is this kind of:
disable csf
in SSH type:
nano /etc/sysconfig/iptables
then add this lines :
-A FORWARD -j ACCEPT -p all -s 0/0 -i venet0

-A FORWARD -j ACCEPT -p all -s 0/0 -o venet0

-A INPUT -i venet0 -j ACCEPT

-A OUTPUT -o venet0 -j ACCEPT

and
nano /etc/csf /csfpre.sh
and add this lines:
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

at last edit /etc/csf /csf .conf
( nano /etc/csf /csf .conf)
an serach for:
ETH_DEVICE = ""
and chage it to:
ETH_DEVICE = " venet+ "
enable csf