
|
about
firewall primer details knock lab download implementations documentation FAQ images resources contact
The port knocking Perl prototype is licensed under the GPL license.
GPL License
![]() |
Firewall PrimerPerl prototype: v0.30
2004-Nov-14 18:59 | ...more new Net::Pcap support added to sniff packets directly ...more
This section introduces the idea of communication ports and firewalls at a very introductory level. If you are familiar with TCP/IP and firewalls, you can skip past this section and go straight to the details of the port knocking implementation. This introduction is not a technical document and is targetted at a non-technical audience or novices computer users and administrators.
port allocationPorts are divided up into three ranges, shown in Figure 2. Ports numbered 0-1023 are called
registered
![]() ![]()
Figure 2 | Ports fall into one of three contiguous groups: privileged ports, well-known ports and dynamic ports. Note that the ranges are not shown to scale - there are far more ports in the well-known category than in the privileged category.
Ports numbered 1024-49151 are considered
well-known
Finally, ports in the range 49152-65535 are dynamic or private ports whose use is not regulated. Legitimate applications should not use these ports to receive communication. When you use your computer to connect to a network server (such as now when you've made a connection to the web server that is showing this page) your operating system has selected one of the unused dynamic ports to use to connect to port 80 of a web server. This is illustrated in Figure 3, in which a client (bottom) connects to a server (top). During the duration of communication between a client and server, the combination of the server's and client's IP addresses, and the server's and client's ports uniquely identifies the communication channel through which data flows between the two computers. ![]() ![]()
Figure 3 | A client (bottom), running a client application such as a web browser, uses one of its dynamic ports to connect to a server's (top) network service, such as a web server.
last updated 2004-Apr-05 16:46
|








