joomla templates

admin

You are here: Home » Forum
Sunday, 21 Jul 2019
Welcome, Guest
Username Password: Remember me

How to install CSF Firewall on virtuozzo
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How to install CSF Firewall on virtuozzo

How to install CSF Firewall on virtuozzo 8 years, 1 month ago #3

  • admin
  • OFFLINE
  • Administrator
  • Posts: 12
edit /etc/sysconfig/iptables and add
-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


create file /etc/csf/csfpre.sh and enter all the extra rules directly into it prefixed with "iptables" so the contents of that file should look something like:


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

edit /etc/csf/csf.conf file and add
and search for
ETH_DEVICE = "" change to ETH_DEVICE = "venet+"

Enjoy
  • Page:
  • 1
Time to create page: 0.24 seconds