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?
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?
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
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
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