Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Sep 2011
    Posts
    15
    cPanel/Enkompass Access Level

    Root Administrator

    Default Auto Firewall adding.

    I've had a quick look around on the forum search, can't really see anything that I'm about to ask.

    But.

    What I was wondering was, is there ways to make this auto set the ports that are needed in the iptables file and restart the service on it's own?

  2. #2
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    944
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Auto Firewall adding.

    Config Server Firewall can do this for you.
    • cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
    • Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
    • Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
    SoftDux- The Leaders in Software
    Use the coupon: cpanel-06 to get 20% off our packages

  3. #3
    cPanel Staff
    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    1,881

    Default Re: Auto Firewall adding.

    There's an undocumented script that is called if it exists ( /var/cpanel/cpgs_postinstall by default ) that takes arguments as such:

    system( $cfgdata{'root'} . '/cpgs_postinstall', $user, $game, $srvn, $maxc, $defip, $lowport );

    This is likely to be updated before too long, however for the time being you could take the user/game/server install # and the default ip and first assigned port args to add firewall rules for you. If you aren't comfortable writing a script to handle this, using something like CSF as SoftDux mentioned is fairly quick, just a few more clicks in WHM. There is a list of ports default stickied in this forum that also include the ports needed for normal operation that aren't specific to any one installation (like outgoing update ports, server browser listings, etc.)

    Adding in support for iptables directly may or may not happen with cPGS, as firewalls can be customized in a way that would make it very difficult for a script to figure out where exactly to put each type of rule.
    Need to put in a support ticket for cPGS ? Click on the url below and follow the bottom most link "Submit a Support Request without Logging In"
    https://tickets.cpanel.net/submit/index.cgi?support=1

  4. #4
    Member
    Join Date
    Sep 2011
    Posts
    15
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Auto Firewall adding.

    I see.

    Well thanks to both of you for the suggestions, I'll have a look in to this some time this week. Just getting a little repetitive going through the SSH all the time to open ports :P

Similar Threads & Tags
Similar threads

  1. recursive folders /usr/local/cpanel/perl/auto/auto/auto/auto...
    By bigste in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-14-2009, 11:52 PM
  2. Auto Auto-responder bug
    By DevBreak in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 01-15-2008, 12:48 PM
  3. 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
  4. APF firewall - auto clear deny_host file ??
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-18-2004, 07:18 AM
  5. Auto Update = Auto Erase /etc/localdomains
    By ZachICU in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-19-2001, 11:31 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube