For example, you're on local.example.com
and want to connect to remote.example.com
on port 25 (SMTP), but a firewall is stopping you.
- ssh access to
remote.example.com
, or to another machine that can accessremote.example.com
on port 25.
We get our ssh client to listen on a port on local.example.com
(we'll use 1025). This will forward traffic through to remote.example.com
on port 25.