Re: TCP/IP Ports

From: Andreas Kähäri (ak@freeshell.org.REMOVE)
Date: 08/15/02


From: Andreas Kähäri <ak@freeshell.org.REMOVE>
Date: Thu, 15 Aug 2002 08:00:49 -0000

Submitted by "Armin Krawinkel" to comp.security.unix:
> Joom wrote:
[cut]
>
>> should use for a other application, like 21,80 and so on...
>> I've checked the well-known Port number by IANA. But I doesn't know
>> what I can use for my own application???
>
> actually you _can_ use every port you want but of course you should
> choose some ports that are no *so* well known or even free.
> google for /etc/services if you dont use any unix-like OS
>
>> 1) What is the best port tu use, up to 1024?
>> 2) How could I find this Infos?
>
> google
>
>> 3) Which port is threat to use (concerning hacking)?
>
> all ports are equal but some ports are probed more often of course.
> one more reason not to choose a well known port like 80, 53 or 21
>
>> Thanks in advance for your help?
> ^^
> uhm...dunno the answer to that question :)
>
>> :-) Gm
>

Most (?) Unices doesn't allow anyone that is not root to bind to
ports < 1024. According to "Unix Network
Programming, vol 2":

Well-known ports: 0-1023 (reserved, don't use)
Registerd ports: 1024-49151 (6000-6063 are X Windows), used
                    for servers, may already be taken.
Dynamic/private: 49152-65535 (no restriction)

It also says that servers on BSD systems should use ports
5001-65535 and that ports 1024-5000 are dynamic/private.

So, it's a bit confusing, but I think it's safe to say that
ports above 1024 are fairly safe to use, unless you collide
with, say, X at 6000-6063.

No port is safer than another, from a security point of view.
It's all down to the server litening behind the port...

-- 
Andreas Kähäri
--------------------------------------------------------------
Stable, secure, clean, free:  www.netbsd.org



Relevant Pages

  • Re: ServU-deamon trojan warning with McAfee
    ... But this eMule needs to know how and what they did, ... ADSL connection we called in the pro's to make ISA safe. ... > 'Nothing other then finding a FTP trojan on my system has occured.' ... >> This ports showing can also be caused by an issue having to do with our ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: best shore excursions/activities for San Juan, St Thomas, St ...
    ... Most of the ports ... stepped off the ship and instructed to stay with him. ... cautioned that under no circumstances was it safe to hale a cab out in the ... San Juan your very limited in activity. ...
    (rec.travel.cruises)
  • Re: Begginers basic questions, can someone help?
    ... > access my computer but Zone alarm blocked access. ... There's no easy way that I know of to identify which programs are safe to give ... Internet access to and which are not. ... anything trying to use those ports. ...
    (comp.security.firewalls)
  • RE: [Full-Disclosure] idea
    ... go through the SSL connection. ... That's like sending goods in a safe, ... > agree on ports and the order of real data to be sent ...
    (Full-Disclosure)
  • Re: Accessing TS Application on SBS Domain Member Server
    ... TS ports arn't safe, but RWW is? ... Matt Gibson - GSEC ... >> Anything I can do in RRAS on the SBS box that might solve my problem?? ...
    (microsoft.public.windows.server.sbs)

Quantcast