Skip to main content

How to disallow cPanel to use extra IPs?

Comments

3 comments

  • 24x7server
    Hi, By default the bindings are like 0.0.0.0:2086 and etc, so it binds to all the IPs available on the server irrespective of what ethernet it is on.. If you want to have some IPs to not listen to these port, then it is better to use firewall to block the connection on that port for those IPs only. You can install CSF on your server and use /etc/csf.allow or /etc/csf.deny lists to disable it..
    0
  • Xhuljo Skendaj
    Hi, By default the bindings are like 0.0.0.0:2086 and etc, so it binds to all the IPs available on the server irrespective of what ethernet it is on.. If you want to have some IPs to not listen to these port, then it is better to use firewall to block the connection on that port for those IPs only. You can install CSF on your server and use /etc/csf.allow or /etc/csf.deny lists to disable it..

    yes i know that it binds 0.0.0.0 so i was thinking maybe there is a way to change that and set the ip not 0.0.0.0! that's the reason why i posted here because i want to use one extra ip for something else and not just blocking ports :/ !
    0
  • cPanelMichael
    Hello, The Reserved IP Address Editor interface allows you to configure Apache to ignore HTTP requests on certain IP addresses. Also, the system will not assign those IP addresses to new accounts: Reserved IP Address Editor - Documentation - cPanel Documentation For services other than Apache, consider using "WHM >> Host Access Control" to deny from all IP addresses except the ones you want to allow: Host Access Control - Documentation - cPanel Documentation Thank you.
    0

Please sign in to leave a comment.