LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   which ports open? (https://www.linuxquestions.org/questions/linux-server-73/which-ports-open-744871/)

qwertyjjj 08-03-2009 05:42 PM

which ports open?
 
My server has a default firewall setting for a webserver which is:
1 All Any 22 TCP Allow Active
2 All Any 80 TCP Allow Active
3 All Any 443 TCP Allow Active
4 All Any 8443 TCP Allow Active
5 All 53 Any UDP Allow Active
6 All 123 Any UDP Allow Active
7 All ICMP Allow Active


Surely it only needs to be port 80 for a webserver doesn't it?
I also want to run squid proxy so I assume that is an extra port 3128.
If I have MySQL on the server but only Squid proxy is going to connect to it then no firewall rule is needed - is that correct because it will all be connections within the server?

chrism01 08-03-2009 10:54 PM

See here http://iptables-tutorial.frozentux.n...r/services.txt
but briefly, you'll want 22 (ssh) if you want remote admin
80 = http, 443 = https (if you need ssl eg money txns)
53 = DNS
123 = ntp (network time protocol) keep clock sync'ed
icmp for ping
ask your provider about 8443

qwertyjjj 08-04-2009 08:46 AM

Quote:

Originally Posted by chrism01 (Post 3630333)
See here http://iptables-tutorial.frozentux.n...r/services.txt
but briefly, you'll want 22 (ssh) if you want remote admin
80 = http, 443 = https (if you need ssl eg money txns)
53 = DNS
123 = ntp (network time protocol) keep clock sync'ed
icmp for ping
ask your provider about 8443

8443 seems to be for plesk control panel...sort of like a GUI.
So I guess this doen't need to be open on the IP of the actual server.
If I have squid then I need the squid listening port open but surely http and https should be open for squid to connect out and in?


All times are GMT -5. The time now is 05:02 PM.