The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Dedicated IP allow through firewall

Discussion in 'Security' started by iscwf2014, Jun 19, 2014.

  1. iscwf2014

    iscwf2014 Registered

    Joined:
    Jun 19, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have a WHM 11.44.0 install on a CLOUDLINUX 6.5 and using csf as firewall, on this server i got a shared IP and several dedicated IP's for some accounts. They are on virtual interface eth0:cp1,eth0:cp2 etc.
    How can I allow all trafic from/to one of those dedicated IP's, don't want to do it from ssh with iptables and make a script in case of server restart.
    Using quick allow from csf module gives add failed: x.x.x.x is one of this servers addresses!
    I only see the option to exclude one of the interfaces but it will be eth0, eth1 etc

    Thank You.
     
  2. iscwf2014

    iscwf2014 Registered

    Joined:
    Jun 19, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thank you for the answer.
    I've created and used /etc/csf/csfpost.sh that contains custom rules and is run after csf start/restart
     
Loading...

Share This Page