Opening, blocking and changing ports on RedHat

Dale Farnsworth dale at farnsworth.org
Tue Jan 4 18:06:02 MST 2011


Eric 'shubes' wrote:
> On 01/04/2011 12:52 PM, keith smith wrote:
> > Here is a twist. I set my SSHD to port 2200 but did not change
> > /etc/services, which lists ici on port 2200 for both tcp and udp. I am
> > able to shell in using port 2200. Why no conflict?
> >
> > Keith Smith
> 
> I don't know if /etc/services is actually used by anything aside from 
> name->port resolution (service name to port number). As long as the 
> configuration for the service in question is specified using a port 
> number (as opposed to a service name), I don't think the /etc/services 
> file would come into play. (how/why would it?)
> 
> -Eric 'shubes'

Eric is correct.  /etc/services is only used when converting a port name
to a port number.

-Dale


More information about the PLUG-discuss mailing list