Thursday, 5 March 2026

Chromebook ssh proxy setup

 Chromebook ssh proxy setup

Goal:

The setup of the Chromebook OS that allow to pass all Chrome (web browser) traffic to remote proxy including the DNS resolving (with out need of Chrome extension)

Required:

Chromebook OS with Linux environment support:


Application for creating ssh tunnel to forward all traffic to remote site via ssh

ssh -D 8080 -q -C -N -f user@1.1.1.1 -p 22

FlagFunctionComment
-D 8080Dynamic ForwardingCreates the SOCKS proxy on port 8080.
-qQuiet modeSuppresses warnings and messages.
-CCompressionCompresses data; helpful if your connection is slow.
-NNo CommandTells SSH "don't open a shell/terminal," just sit there and tunnel.
-fBackgroundSends the process to the background immediately after connecting.
-p 22PortSpecifies the remote SSH port (22 is default).

To set proxy settings on ChromeOS (setting search for Porxy settings)


Set up the following settings :
HTTP proxy:                socks5://127.0.0.1 Port 8080
Secure HTTP proxy:    socks5://127.0.0.1 Port 8080
SOCKS Host:              socks5://127.0.0.1 Port 8080

Or use the same proxy for all services:



The need to use socks5 is for to forward DNS query via SSH tunnel to remote site to be resolved on remote DNS server.

Current situation:

Still having connectivity issues, some times after lockout proxy does not work correctly and site does not open as expected.



No comments:

Post a Comment