LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-03-2011, 02:38 PM   #1
Mojojo
Member
 
Registered: May 2003
Location: Philadelphia/PA
Distribution: Mint/Debian
Posts: 447

Rep: Reputation: 33
Standard Web/Mail/FTP/DNS Server Ports


What are the standard TCP/UDP ports that should be opened to allow a Web/Mail/DNS/FTP to operate through iptables?

SOLVED


Code:
20 	TCP 		FTP—data transfer 	Official
21 	TCP 		FTP—control (command) 	Official
22 	TCP 	UDP 	Secure Shell (SSH)—used for secure logins, file transfers (scp, sftp) and port forwarding
25 	TCP 		Simple Mail Transfer Protocol (SMTP)—used for e-mail routing between mail servers
53 	TCP 	UDP 	Domain Name System (DNS)
80 	TCP 	UDP 	Hypertext Transfer Protocol (HTTP)
110 	TCP 		Post Office Protocol v3 (POP3)
143 	TCP 		Internet Message Access Protocol (IMAP)—management of email messages
443 	TCP 		HTTPS (Hypertext Transfer Protocol over SSL/TLS)
465 	TCP 		SMTP over SSL
993 	TCP 		Internet Message Access Protocol over SSL (IMAPS) 	Official
995 	TCP 		Post Office Protocol 3 over TLS/SSL (POP3S)

Last edited by Mojojo; 09-04-2011 at 01:04 PM.
 
Old 09-03-2011, 02:43 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Have a look at WikiPedia for a pretty complete list.

Kind regards,

Eric
 
Old 09-03-2011, 02:47 PM   #3
Mojojo
Member
 
Registered: May 2003
Location: Philadelphia/PA
Distribution: Mint/Debian
Posts: 447

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by EricTRA View Post
Hello,

Have a look at WikiPedia for a pretty complete list.

Kind regards,

Eric
That is what they call TMI Thank you but I was looking for a more direct answer that way I do not have needless ports open thank you though!
 
Old 09-03-2011, 02:51 PM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

What do you mean by direct answer? That we help you avoid reading ? Here goes:
Quote:
HTTP 80
HTTPS 443
DNS 53
FTP 21
SMTP 25
POP 110
IMAP 143
Kind regards,

Eric
 
Old 09-03-2011, 02:55 PM   #5
Mojojo
Member
 
Registered: May 2003
Location: Philadelphia/PA
Distribution: Mint/Debian
Posts: 447

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by EricTRA View Post
Hi,

What do you mean by direct answer? That we help you avoid reading ? Here goes:


Kind regards,

Eric
Yep

I put it together already so here is what I got

Code:
20 	TCP 		FTP—data transfer 	Official
21 	TCP 		FTP—control (command) 	Official
22 	TCP 	UDP 	Secure Shell (SSH)—used for secure logins, file transfers (scp, sftp) and port forwarding
25 	TCP 		Simple Mail Transfer Protocol (SMTP)—used for e-mail routing between mail servers
53 	TCP 	UDP 	Domain Name System (DNS)
80 	TCP 	UDP 	Hypertext Transfer Protocol (HTTP)
110 	TCP 		Post Office Protocol v3 (POP3)
143 	TCP 		Internet Message Access Protocol (IMAP)—management of email messages
443 	TCP 		HTTPS (Hypertext Transfer Protocol over SSL/TLS)
465 	TCP 		SMTP over SSL
993 	TCP 		Internet Message Access Protocol over SSL (IMAPS) 	Official
995 	TCP 		Post Office Protocol 3 over TLS/SSL (POP3S)

Last edited by Mojojo; 09-03-2011 at 03:03 PM.
 
Old 09-03-2011, 03:47 PM   #6
LBM
Member
 
Registered: Aug 2010
Location: Denmark
Distribution: Debian
Posts: 99

Rep: Reputation: 0
A tip. Only open ports for which services you are running, and open them, as you have installed and configured the services.
Most likely you are not running TLS services in example on your mail, og web, for which there is no need to open the ports.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 10:18 PM
configuring it as a router ftp, my sql,web server, and open and close ports with masq digitalf Mandriva 1 09-04-2004 05:43 AM
Setup DNS, WEB, FTP, and Mail Server Help! dcdjservices Linux - Networking 42 08-28-2003 04:57 PM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 04:09 AM
Ftp service on non-standard ports kasnol Linux - Networking 5 06-19-2003 11:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration