[Techtalk] closing ports in /etc/services

Stratis Aftousmis stratus at ccsi.com
Wed Sep 17 16:27:39 EST 2003


> OK uber geeks, me again. I've always managed opening/closing ports with
> boot  scripts, firewalls, and individual program configs. Now I see this
> document  http://www.resnet.mtu.edu/support/linux/ports.php3  that says
> you can simply  comment out ports you want to keep closed in
> /etc/services. Sounds daffy to  me- what say ye? I'm running Debian, if
> that matters.
>
> cheerios,
> Carla
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~
> Carla Schroder
> www.tuxcomputing.com
> this message brought to you
> by Libranet 2.8 and Kmail
> ~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk\

Hi carla,
I don't want to all RTFM'y on you, but 'man servises' is a good resource
for this...
<snip>
services is a plain ASCII file providing a mapping between friendly
textual names for internet services, and their under-
       lying assigned port numbers and protocol types. Every networking
program should look into this file to get the port  num-
       ber  (and  protocol)  for its service.  The C library routines
getservent(3), getservbyname(3), getservbyport(3), setser-
       vent(3), and endservent(3) support querying this file from programs.

</snip>
hope this provide's insight.
stratis. :)





More information about the Techtalk mailing list