Search /
Docfinder:
Advanced search  |  Help  |  Site map
RESEARCH CENTERS
SITE RESOURCES
Click for Layer 8! No, really, click NOW!
Networking for Small Business
TODAY'S NEWS
Apple tops the $100B+ tech club
How to get the IRS' attention: Forge nearly $8 million in tax returns, steal identities
Microsoft details Windows 8 for ARM devices
Blogger exposes major Google Wallet security flaw
Web app lets enterprise set security, sharing for Google Apps users
Cloudscaling to offer OpenStack private cloud platform
Valentine's Day Patch Tuesday: Microsoft to issue 9 patches, 4 critical
Mobile World Congress sneak peek: Quad-core smartphones, Ice Cream Sandwich & more
Microsoft details 'Windows on ARM' program
March debut of 'iPad 3' a sure bet, says analyst
Resume Makeover: How an Information Security Professional Can Target CSO Jobs
FBI unbolts Steve Jobs 1991 investigation file
Cisco boosted profit, sales in Q2 while cutting costs
Macs take on the enterprise
/

Thoughts on ports

Gibbs archive

In Dr. Intranet last week, the good doctor answered a question about checking for open TCP/IP ports. At Gearhead HQ, we thought it was a good opportunity to expound on some theory and tools related to ports.

To start, for a refresher on ports check out Gearhead's "Toward a better understanding of sockets,". We noted that, "By giving each service process running on a machine a 'port' - a numeric value used to identify the process - a client application can distinguish between, say, a file transfer service and a Web service."

While there are de facto standards for which port numbers are assigned to which services, the majority of servers allow you to select the port number to be used. There are many reasons for doing this, the chief of which is to run multiple servers on the same machine.

For example, on a Windows NT server you might be running Microsoft's Internet Information Server (IIS) and the FTGate mail server from Floosietek (www.floosietek.com - also reviewed in Gearhead's "The quest for the perfect mail server,". IIS will, by default, run on Port 80 so the Web interface for FTGate must run on a different port.

Dr. Intranet mentioned a favorite tool of his for testing whether ports are enabled - Netcat. Netcat is a telnet program originally written for Unix and now ported to Windows 9X/NT that has lots of options and capabilities. While Netcat works great, Gearhead would suggest that if you want to efficiently test whether ports are enabled on a remote machine, you need to use a tool built specifically for the task called a port scanner.

One of the most highly rated port scanners is an open source utility called Nmap (www.insecure.org/.nmap/), but as with most serious network diagnostic tools, there's no Windows implementation - you'll have to run Linux, Free/Net/OpenBSD or Solaris.

Nmap is powerful, and allows you to perform address and port scans in dozens of ways with many options.

Nmap can even identify the operating system in use on a remote machine by analyzing the way the machine responds to TCP/IP requests. This is a technique called "stack fingerprinting," and you can find out more than you wanted to know at www.insecure.org/nmap/nmap-fingerprinting-article.html.

A less powerful but easier-to-use Windows 9X/NT tool that Gearhead has found useful is WS_Ping ProPack from Ipswitch (www.ipswitch.com/Products/WS_Ping/). Not only does WS_Ping perform port scans, it also performs forward and reverse Domain Name System lookups; grabs raw HTML pages; handles SNMP; and performs traceroute, Lightweight Directory Access Protocol, Network Time Protocol, Whois and Finger queries. WS_Ping can also interrogate Windows networking and test connection throughput.

Before you go scanning other people's networks, beware. Most system administrators consider scanning ports to be an overtly hostile act that may presage a hack attempt. The response could be anything from reporting you to your ISP to mounting a counteroffensive such as a SYN flood attack.

Perhaps we'll open a port next week. . . . Send data to gearhead@.gibbs.com.

RELATED LINKS


NWFusion offers more than 40 FREE technology-specific email newsletters in key network technology areas such as NSM, VPNs, Convergence, Security and more.
Click here to sign up!
New Event - WANs: Optimizing Your Network Now.
Hear from the experts about the innovations that are already starting to shake up the WAN world. Free Network World Technology Tour and Expo in Dallas, San Francisco, Washington DC, and New York.
Attend FREE
Your FREE Network World subscription will also include breaking news and information on wireless, storage, infrastructure, carriers and SPs, enterprise applications, videoconferencing, plus product reviews, technology insiders, management surveys and technology updates - GET IT NOW.