| A Practical Guide to SSH Tunnels: Local and Remote Port Forwarding(labs.iximiuz.com) | |
| 357 points by signa11 5 days ago | 66 comments | |
tl;dr: A hands-on guide to SSH port forwarding covering four modes: local (`-L`) exposes a remote service on a local port, remote (`-R`) exposes a local service on a remote port, and dynamic (`-D` or `-R` without destination) turns either side into a SOCKS proxy for accessing entire networks through one tunnel. Each mode is demonstrated with lab examples using a bastion/jump host setup, and the author offers a mnemonic: `-L local:remote`, `-R remote:local`, with the left side always being the port that opens. | |
HN Discussion:
| |