Portal Home > Knowledgebase > Articles Database > Server Ports ?


Server Ports ?




Posted by Harry E, 09-09-2013, 11:35 AM
Hi, I have just setup and configured a Linux Based web server that runs 1. Apache 2. PHP 3. MYsql 4. Postfix Mail Server 5. BIND Nameserver 6.PureFTPd what ports do i need to physically open on my firewall for thease services to work over the internet ? please can somebody let me know Thanks H

Posted by Patrick, 09-09-2013, 11:42 AM
Apache and PHP would both use port 80 (HTTP) and 443 (HTTPS). MySQL uses port 3306 but shouldn't be open to remote connections unless you really need it. Mail servers should use port 25 & 587 (SMTP), 110 (POP3), 995 (POP3-SSL), 143 (IMAP) and 993 (IMAP-SSL). BIND a/k/a DNS uses port 53. Pure-FTPD uses port 20 & 21 but if you have PASSIVE mode enabled you need to open a set port range ... I tend to use 60,000 to 65,000 for that. Make sure you specify the port range in the Pure-FTPD configuration file.

Posted by ZonedHost, 09-09-2013, 11:56 AM
Patrick is bang on. Pure-FTPD will need you to specify a PASSIVE port range otherwise it won't work simply via :21. I assume you are using this because of cPanel and here is some documentation to show you how to set this up with a firewall and it explains it a bit more with diagrams etc http://docs.cpanel.net/twiki/bin/vie...FTPPassiveMode

Posted by Harry E, 09-09-2013, 12:43 PM
Thanks for the replies i will give them a go

Posted by Mayur-strad, 09-16-2013, 07:03 AM
1. Apache :- port 80 (HTTP) and 443 (HTTPS). 2. PHP :- 3. MYsql :- 3306 4. Postfix Mail Server :- 5. BIND Nameserver :- 53 6.PureFTPd :- 20,21



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
F5 lock server (Views: 600)
DDoS Protection (Views: 700)

Language: