Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jun 2007
    Posts
    18

    Default What is the correct way to set up cPanel behind a firewall?

    Say I have my router/firewall with external IP 1.2.3.4 and internal IP of 10.0.0.1. Also say I have my webserver running cPanel with an interal IP of 10.0.0.2.

    First of all, is this recommended or should I have my cPanel box with the public IPs?

    Second, if it's ok to have it behind my router, what cPanel configuration changes do I need to make to ensure it will run properly? Assume I have all my port forwarding set up correctly on my router. Domains will still need to have DNS entries that match that of my public IP (1.2.3.4), but Apache config files will need to have the internal (10.0.0.2) IP, correct? What do I need to change to make sure this is all set up properly when I add a new domain.

    Also, with the "fix" of domains needing their own IP for SSL certificates, in a shared environment, would I then need to add additional IPs both to the public side of my router (ex: 1.2.3.5) as well as my cPanel box (ex: 10.0.0.3)?

    I'm just curious what all I need to do to make cPanel function properly behind a firewall.

    Thanks in advance!

    Jay

  2. #2
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I guess if you really know what you are doing, you could put your cPanel box behind a firewall/router box but I can't think of any advantage in doing that.

    The normal approach is to make the cPanel IPs public and run something like CSF to add an additional layer of security. One specific advantage of running CSF over your native hardware firewall is that it has various smarts in it and will detect a lot of hack attempts and ban the hacker IP, thus limiting the time they have for security scans/breakin attempts.

Similar Threads & Tags
Similar threads

  1. How to set correct field in my table for date?
    By toplisek in forum Database Discussions
    Replies: 3
    Last Post: 02-04-2011, 03:05 PM
  2. Replies: 0
    Last Post: 03-08-2007, 07:29 AM
  3. IMAP Broken, Firewall Not Blocking Port, User/Pass Correct
    By Xyrael in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-05-2006, 02:39 PM
  4. APF firewall. Daily automated email showing firewall status.
    By Charles Sweeney in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-11-2005, 02:52 PM
  5. Is there anyway to set the firewall to block fake ip
    By samtam in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-22-2003, 07:18 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube