Discussion Locked

Ed Bott's Microsoft Challenge--4/20/2000

0 helpful
82 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Many of you suggested that the most important part of configuring a firewall or proxy server is to block undesirable incoming and outgoing ports and allow the ones I need. OK, I'll buy that. In my continuing quest to build a truly private VPN, I need to configure TCP and UDP ports. But I'm having trouble finding an authoritative source of information on port numbers and their purposes. Can you point me (and your fellow TechRepublic members) to the best source of information?

82 replies

by teddyrux

The services file found on every windows based machine is the best place to look.
"This file contains port numbers for well-known services as defined by
# RFC 1060 (Assigned Numbers)."

by calves

Hey,
I guess I missed the word authoritative when I answered the first time.
http://www.iana.org is an authority ( but their site lacks of easy to use features), that is reason for my first answer.

by point man

In the perfect scenario you would deny all connections (any connection from anywhere to any port) and allow only those connections to ports that you find out you really need to open up. Of course the perfect security world is an unusable system from a users perspective. Hence your question to find a source of information that says "here's a template set of ports that are commonly opened up and why..."

I have found no such list since every environment is different. IANA (Internet Assigned Numbers Authority) is where you would go if as a vendor you wished to register a port to be home for a well-known service. rfc1700 obsoletes 1060 that was mentioned earlier and includes all the ports ever registered. However as the previous poster mentioned, this is a terse format. The previous link is a good one but incomplete as it touches on only some of the most popular well-known ports for video-conferencing, instant messaging etc.Your best bet is to

by point man

your best bet is to find a peer at an organization that does similar work and ask them what they block, what they allow, and why. Also something very interesting and useful would be to find out what their procedure/policies are for blocking or punching a hole in the firewall/proxy.

Have fun,

huba@uidaho.edu

by scubajeff2

"Before we start to struggle out of here,
O master,' I said when I was on my feet,
'I wish you would explain some things to me.'"
-Dante Alighieri, Inferno, Canto XXXIV, 100-2

As is quoted in my standby reference, before the discussion of SATAN implementation- if you like hardcopy, check out Internet Security, New Riders Publishing.

p.s.- My favorite is the look on the clients' face when you bring a book this size.

by robert406

If you haven't had the oportunity to see it, you really need to get it!! I have just recently been taking, and studying for 2000 beta exams. The Windows 2000 resource guide is a wealth of info. It covers how to secure your VPN, RRAS and web Servers buy filtering by port. Siting examples and also introducing the latest security technology available for windows 2000. For example using IPSec provides Layer 3 protection for all IP and upper layer protocols in the TCP/IP suite, such as TCP, UDP, ICMP, Raw (portocol 255), and even custom protocols that send traffic at the IP layer. If, in your migration to 2000 you can't go to IPSec, there are several examples given on how to best secure different services. The book from the kit, "TCP/IPCore Networking Guide" has an appendix C "TCP and UDP Port Assignments". Sections include: port assignments and protocol numbers, well-Known ports, Registered ports, and port assignments for commonly used windows 2000 services ports. Technet wouldalso be an excellent

by mdrawbaugh

I would have to say, for universal documentation on ports, I would check the sites for IEEE, IETF and of course InterNIC. I believe all three would probably point you toward RFCs regarding port information and registration.

by mikeray1

One of the best sources for TCP/IP information that I have found is a book by Karanjit S. Siyan, Ph.D.

This book is called "Inside TCP/IP"(ISBN 1-56205-714-6). I have the 3rd edition. This guy is great for info on this subject and many others. His book "Windows NT Professional Reference" (ISBN 1-56205-805-3) Has a great section on TCP/IP as well as it relates to NT. This is a second edition book.

Now as far as VPN's are concerned a big issue is scope of work. Are you setting up a pipe toallow many remote users to come to one location or are you setting up a pipe between two locations for many people at each end to communicate through?

In either case I (MSCE) do not recomend MS proxy to do this. No matter how you slice it, it isnot a firewall.

Axent technologies Raptor Firewall (www.axent.com) is a true "Layer 7" (OSI Application Layer) gateway firewall. What does this mean..PIX,Checkpiont,Firewall-1 etc,secure at Layer 3 (OSI Network Layer). A Raptor Firewall is a little slower, but it no

by pschmied

One of the best online sources is through Steve Gibson's GRC.COM.

Steve has made it one of his his personal crusades to come up with a system/strategy that will protct computing systems from unwanted intrusions.

He has a solid reputation in the industry, was a regular columnist for one of the best weekly trade pubs, and is the author of SpinRite and other tools offered through Gibson Research.

I got a listing a while back via his site, and if you can't find it, Steve is good about responding to reasonable requests for information.

by mikeray1

There are 65535 ports, the largest portion of them are used by the server to connect users. Each IP address has 65535 possible connections. These numbers (ports) are where the term sockets comes from. The TCP/IP model has 4 layers, (Network, Internet, Transport, Application). The socekts layer is on top of the Transport Layer. Has anyone ever wondered why winsock.dll is so important? It is the gate keeper to the ports. This is the API interface to the sockets. The sockets (ports) Interface is the true end point of the network.

by geosean

I have a listing (264k) submitted by someone named Andreas Ender to the Watchguard User Group several weeks back. This list uses the following as references:

REFERENCES

[RFC768] Postel, J., "User Datagram Protocol", STD 6, RFC 768,
USC/Information Sciences Institute, August 1980.

[RFC793] Postel, J., ed., "Transmission Control Protocol - DARPA
Internet Program Protocol Specification", STD 7, RFC 793,
USC/Information Sciences Institute, September 1981.

Is there a wish for this list to be placed in the downloads area?

by jay.ligouri

Take a look at Appendix B of the NT 4.0 Resource Kit Networking Guide. I found the document located in TechNet.

by tekcetera

I have found the Network Professional's Library series of resource manuals to be a clear and authoritative source for many questions. In the manual entitled Cisco, A Beginner's Guide there is some mention of server port numbers and their function.On page 60 there is a figure showing the different port numbers that TCP and UDP handle. TCP uses port 80 (HTTP port), ports 20 and 21 (FTP ports), and port 25 (SNMP port). Both TCP and UDP use port 53 (DNS), and UDP uses port 161 (SMTP) and port 69 (TFTP). This manual does not go into great detail about port numbers, but it has the basic necessary information.

by stephen_ski

Hmmmm,yo be honest with you ,you don`y need to know.
If you use a firewall (like checkpoint`s firewall-1) it will give you a GUI with which to work so port knowledge becomes defunct..
most firewall software will do this for you ,BUT i good place to look is www.theinternetbook.net this has more than enough info for you (the guy who wrote it gave my course on CHECKPOINT`S firewall software and knows his stuff) alternitivly go to #CISCO`S site and do a search on TCP/ip ports..both sorces are V.good
Many thanks
Steve skinner

by marlin

Maybe this will be of some help in solving this weeks Microsoft challenge:
Port numbers are assigned by the Internet Assigned Number Authority. Here is a list of the more common numbers:

* 0/tcp Reserved
* 0/udp Reserved
* tcpmux 1/tcp TCPPort Service Multiplexer
* compressnet 2/tcp Management Utility
* compressnet 3/tcp Compression Process
* rje 5/tcp Remote Job Entry
* echo 7/tcp Echo
* echo 7/udp Echo
* discard 9/tcp Discard
* discard 9/udp Discard
* systat 11/tcp Active Users
* daytime 13/tcp Daytime
* daytime 13/udp Daytime
* qotd 17/tcp Quote of the Day
* qotd 17/udp Quote of the Day
* rwrite 18/tcp RWP rwrite
* rwrite 18/udp RWP rwrite
* msp 18/tcp Message Send Protocol
* msp 18/udp MessageSend Protocol
* chargen 19/tcp Character Generator
* chargen 19/udp Character Generator
* ftp-data 20/tcp File Transfer [Default Data]
* ftp 21/tcp File Transfer [Control]
* telnet 23/tcp Telnet
* 24/tcp any private mail system
* 24/udp any private mail sy

by jdpalmer

Check the SERVICES file in %SystemRoot%\system32\drivers\etc in NT 4.0 or Windows 2000. This will give a list for UDP and TCP ports. These are defined by series of RFCs, the latest being 1700. The IANA (Internet Assigned Numbers Authority) site has all the information you would ever need: http://www.iana.org/

by charleshill7755

PORT NUMBERS

The port numbers are divided into three ranges: the Well Known Ports,
the Registered Ports, and the Dynamic and/or Private Ports.

The Well Known Ports are those from 0 through 1023.

The Registered Ports are those from 1024 through 49151

The Dynamic and/or Private Ports are those from 49152 through 65535

WELL KNOWN PORT NUMBERS

The Well Known Ports are assigned by the IANA and on most systems can
only be used by system (or root) processes or by programs executed by
privileged users.

Ports are used in the TCP [RFC793] to name the ends of logical
connections which carry long term conversations. For the purpose of
providing services to unknown callers, a service contact port is
defined. This list specifies the port used by the server process as
its contact port. The contact port is sometimes called the
"well-known port".

To the extent possible, these same port assignments are used with the
UDP [RFC768].

The assigned ports use a small portion of the possib

by Member 36964044

Hi Mr. Bott -

Here's my solution:

A copy of the original specifications for UPP and TCP ports can be found at the links
http://www.cis.ohio-state.edu/htbin/rfc/rfc768 and
http://www.cis.ohio-state.edu/htbin/rfc/rfc793 .

Microsoft's implementation of the specifications (for NT at least) can be configured by:

1 Displaying Network properties. (Start, Settings, Control Panel, Network, Protocols Tab).

2 In the Network Protocol list, click TCP/IP Protocol, and then click Properties.
3 On the IP Address tab, click Advanced.
4 Click Enable Security, and then click Configure.
5 In the Adapter list, select the network adapter for which you want to set TCP/IP security.
6 You can set filtering by TCP Ports, UDP Ports, and IP Protocols. For each of the three filters, click either Permit All (the default setting) or Permit Only, as follows:

To allow all connections of that type to pass through, click Permit All.
To block all connections of that type, click Permit Only, click Add, and then t

by admin

The best solution would be to take a look at the SERVICES file. This file is contained on almost every operating system. On Windows NT/2000, check the \%SystemRoot%\System32\Drivers\etc\Services file, on Windows 95/98 check the \%SystemRoot%\Services file, and on most UNIX sytems, like Solaris, check out the /etc/services file for a list of services.

Terry, MCSE+I

by shanghai sam

And you'd need such an information why? Whichever firewall or proxy you'll end up using will have ample documentation on how to configure the TCP and UDP ports. Most of them, like MS Proxy 2.0, even have predefined filters for the VPN to send and receive such traffic. I'd be more worried about the remote user's PCs with "always on" connection to the web. Most of those home machine can be taken over rather easily and connect to your network as a "legitimate" user. But I guess it's great to know 65535 port's purposes....

Otto

This discussion is closed to new replies.