Skip to main content

Module 9: Port Forwarding and Tunneling

Chapter 32: SSH Dynamic Port Forwarding

In this chapter, you'll learn how SSH dynamic port forwarding works, how to set up a SOCKS proxy with SSH, and how to configure browsers and apps to use it.

In the previous chapter, you learned how remote port forwarding works, how to expose local services through a remote server, and how to create persistent reverse SSH tunnels using autossh and systemd.

In this chapter, you'll learn about the third and final type: dynamic port forwarding.

Unlike local and remote port forwarding, which connect a specific local port to a specific destination, dynamic port forwarding is more flexible, as it allows a single SSH tunnel to handle connections to many different destinations without creating separate forwarding rules for each one.

What Is a SOCKS Proxy?

Updated on Jun 1, 2026