How to open ports in ubuntu

Asked by Phillip

Need to open ports 110 - pop, 25 - smtp and 143 - imap .. did a scan and said ports are closed need to open to configure thunderbird for webmail not seeing ports opened.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jim Hutchinson (jphutch) said :
#1

How did you do a scan? These are standard ports and are open but only when something is listening. Your router/modem probably uses NAT (http://en.wikipedia.org/wiki/Network_address_translation) to hide them from a normal outside scan.

Revision history for this message
Stephenson (k-admin-ubunto-tstephenson-com) said :
#2

I also need to open ports 111, 25 and 143 to run a server as a non-root user. The ports are open if run as root, they are not available to a non-root user by default. I can open port over 1000 for this but I would prefer to run using the normal ports.

Revision history for this message
David Ally (david-ally) said :
#3

Depending on your setup, if your firewall is blocking the ports from outside, you may need to open them with

sudo iptables -A INPUT -p tcp --dport (port number) -j ACCEPT

replace port number with the service port number.

Can you help with this problem?

Provide an answer of your own, or ask Phillip for more information if necessary.

To post a message you must log in.