Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Opening Port 2195
PostPosted: Wed Oct 13, 2010 12:37 am 
Offline
Newbie

Joined: Wed Oct 13, 2010 12:27 am
Posts: 4
Hello,

I am running Ubuntu 10.04 on my Linode and wanted to open ports 2195 and 2196. I thought I could do it in /etc/services but that doesn't seem to work. Specifically, this is to send Push Notifications for mobile apps. Any help would be appreciated on how to open these ports. Thanks in advance.

Jim


Top
   
 Post subject:
PostPosted: Wed Oct 13, 2010 9:56 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Unless you specifically blocked the ports by setting up a firewall, the ports don't need to be opened (because they're not closed).


Top
   
 Post subject:
PostPosted: Wed Oct 13, 2010 2:18 pm 
Offline
Newbie

Joined: Wed Oct 13, 2010 12:27 am
Posts: 4
I installed the LAMP configuration. Does Apache automatically install a firewall? I didn't specifically activate one. Are there commands I can run in SSH to check and then open a port. I realize that all ports should be open but I would like to know how to manipulate them - if possible. Thanks.


Top
   
 Post subject:
PostPosted: Wed Oct 13, 2010 2:43 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Apache doesn't install any sort of firewall, although I don't know what the stackscript that you used does. It's not a matter of if ports are open are not, because there's nothing to be open.

It'd be like saying "Is the door open or closed?" when the question is moot because the door does not exist to begin with.


Top
   
 Post subject:
PostPosted: Wed Oct 13, 2010 6:05 pm 
Offline
Senior Member

Joined: Mon Jul 05, 2010 5:13 pm
Posts: 392
There are essentially 3 potential states for ports, looking at things from a basic perspective.

1. The port is closed by a firewall. You, or a script run by you, or a firewall actively setup by you, etc, would have to specifically close a port in order for it to be closed. Any messages sent to this port will either be ignored or rejected, depending on the settings.

2. The port is in use. This is what I believe you mean by "open". This includes ports specifically claimed by apache, postfix, etc. Essentially, programs on your server take control of a port, and any messages sent to that port will be given to that program.

3. The port exists, but is neither in use or closed. This is the state of every port on your server which is not specifically set as one of the above options. Messages sent here will be ignored, not because the port is closed, but because there is nowhere to send the message.


Top
   
 Post subject:
PostPosted: Wed Oct 13, 2010 6:19 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
akerl wrote:
3. The port exists, but is neither in use or closed. This is the state of every port on your server which is not specifically set as one of the above options. Messages sent here will be ignored, not because the port is closed, but because there is nowhere to send the message.

Not quite "ignored", because (barring something along the network path preventing it or local configuration to prevent its generation), attempting to make a connection to an unused port will generate a packet back (ICMP or TCP RST) indicating the connection was refused/port is unavailable. So it's more a positive rejection than no response.

Most firewall setups do, however, truly ignore/hide the absence of a port when they are protecting it and blocked traffic is received - no response at all back to the initiator of the traffic.

-- David


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group