I'm using Bastille:Originally posted by Haddy
How would you close these ports?
Hey, you responded to a 3 year old threadYou can open/close your ports via the iptable rules (if your running that) I've been working with
lol i suppose i didHey, you responded to a 3 year old thread![]()
Answers provided more than 9-12 months ago are likely to be inaccurate for modern builds of cPanel.lol i suppose i did, doesn't mean someone out there won't find it useful
I troll the old posts to see if there might be answers to qestions I might be facing
![]()
I agree. But, in that case, can you post an updated list of ports to leave open via firewall?Answers provided more than 9-12 months ago are likely to be inaccurate for modern builds of cPanel.
Up to date information for the ports needed for a cPanel/WHM server can be found at:I agree. But, in that case, can you post an updated list of ports to leave open via firewall?
I know about this lists used in CSFfirewall:
TCP_IN =20,21,22,25,53,80,110,143,443,465,953,993,995,2077,2078,2082,2083,2086,2087,2095,2096,30000:35000
TCP_OUT =
20,21,22,25,37,43,53,80,110,113,443,587,873,953,2087,2089,2703,30000:35000
UDP_IN =
20,21,53,953,30000:35000
UDP_OUT =
20,21,53,113,123,873,953,6277,30000:35000
If you changed the SSH port to other than 21, replace 21 in TCP with your real port. Don't leave it open if you aren't using it.
If you run a monolithic kernel (a VPS), ports 30000:35000 must be enabled in pure-ftpd in order to enable PASV mode. (Although, doing so, when firewall is running I can upload files but cannot download files that have been uploaded prior to this settings, even if they have the same chmod attributes!)
Is this list complete? May be some ports missing?
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
J | Thoughts on on bots examining common ports? | Security | 4 | |
J | Can't disable 80, 22, 443 ports | Security | 3 | |
T | Non-SSL domains with ports not redirecting to SSL equivalent | Security | 6 | |
D | What ports should I block, or steps I should take...? | Security | 1 | |
A | Which ports should I keep open and which close ?? | Security | 2 |