The source port
When creating a firewall rule, it is important to remember that the source port is often chosen by the system's implementation of the networking protocol being used from a range of ports. Since we rarely know what this port is in advance, it is usually correct to leave the source set to any. To understand why this is the case, consider the example of a user requesting a simple web page. Port 80 is the default port for HTTP traffic, but this refers to the port requested on the remote server. The port used on the client will be chosen from a range of ports (typically from 1024 to 65535); this port is often a seemingly arbitrarily chosen one. If the router uses NAT, this internal port will be translated to a different (external) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access