How to install CSF Firewall on virtuozzo

Discussion in 'Security' started by megapowerhost, Aug 17, 2008.

  1. #1
    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+"

    (as their is no eth0 in a VPS).
     
    megapowerhost, Aug 17, 2008 IP
  2. hostingdispatch

    hostingdispatch Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    AH perfect
     
    hostingdispatch, Sep 23, 2009 IP
  3. atbnet

    atbnet Peon

    Messages:
    75
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You'll also want to make sure your host has the iptables modules loaded for a firewall to work properly.
     
    atbnet, Sep 24, 2009 IP