Networking

Port forwarding

Port forwarding directs specified incoming traffic to a local device. It creates an exposure path and should be limited to a justified service.

One specific inbound port reaches a local server while other traffic remains blocked.

What it means

A rule normally maps an external protocol and port to an internal address and port. The destination service must be listening, its local firewall must permit the traffic, and upstream addressing must allow reachability. CGNAT or another router can prevent the path from working. Local tests may behave differently from external tests.

How this affects everyday use

A changing server address, wrong protocol, stopped application or provider NAT can cause failure. Broad ranges and exposed-host settings can open far more than intended.

A practical example

A documented server port is forwarded to a reserved local address, while unrelated services remain blocked.

What to check

  • Verify the application's required protocol and listening port.
  • Confirm the server address and endpoint firewall.
  • Test from an authorised external connection and check upstream NAT.

Practical next steps

  • Prefer an authenticated remote-access alternative where appropriate.
  • If required, create the smallest specific rule and retest.
  • Delete unused and temporary forwarding rules.

Keeping it reliable

Keep exposed software updated, use strong authentication and monitor access. Never forward router administration or storage broadly as a quick fix. A successful connection test is not a security assessment.

Technical sources

← All glossary terms