Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Use csf to block incoming hits to extra local IPs?

Discussion in 'Security' started by Scott Galambos, Jul 29, 2018.

Tags:
  1. Scott Galambos

    Scott Galambos Active Member

    Joined:
    Jul 13, 2016
    Messages:
    42
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    My servers main IP is say 204.11.xx.xxx. When I run ifconfig I have a bunch other IPs I've allocated to my server such as 204.11.xx.xxx,204.11.xx.xxx, 204.11.xx.xxx, etc. I don't use these IPs. should I block them with csf? how? I don't want to block anything incoming to my main IP of 204.11.xx.xxx. can I block these other IPs?

    ifconfig example:
    eno16780032:cp1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 204.15.xxx.xxx netmask 255.255.255.255 broadcast 204.15.xxx.xxx
    ether 00:0c:29:3e:25:a1 txqueuelen 1000 (Ethernet)

    eno16780032:cp2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 204.15.xxx.xxx netmask 255.255.255.255 broadcast 204.15.xxx.xxx
    ether 00:0c:29:3e:25:a1 txqueuelen 1000 (Ethernet)
    ...
     
    #1 Scott Galambos, Jul 29, 2018
    Last edited by a moderator: Jul 29, 2018
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,742
    Likes Received:
    76
    Trophy Points:
    353
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Just turn them off /remove them
    add them back when you do use them
    ===========================
    if you want to keep them at least configured
    move them from cpanel's ip alias
    to /etc/sysconfig/network-scripts as alias's
    and set onboot to no
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice