Skip to main content

Ssh Socks Proxy

·97 words·1 min
O11y | Cloud
Author
O11y | Cloud
Site Reliability Engineer
Table of Contents

Proxy Browser Connection through SSH
#

I needed to proxy browser traffic through my server to avoid limitations introduced by the network I was connected to. Here is the simplest solution I’ve found.

SSH SOCKS5 Proxy
#

One liner:

ssh -D 1080 user@server

Creates SOCKS5 proxy listening on the localhost:1080. You just need to configure your browser or any other SOCKS5 aware application to use this proxy. Now, the browser traffic will go through your SSH server.

Encryption
#

SOCKS5 doesn’t provide encryption, but the traffic sent through this connection is encrypted using the established SSH tunnel.