Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Secure browsing using SSH tunnels

Leer en espanol
Secure browsing using SSH tunnels

Table of contents

Through SSH tunnels we can secure multiple protocols. This can be very useful for insecure connections such as a hotel Wi-Fi network, free networks offered by town halls, restaurants or having a coffee at Starbucks, since we are exposed to all types of attacks.

To do this, first we are going to install openssh

text
aptitude install openssh-server

Inside the configuration file /etc/ssh/sshd_config buscamos las siguientes lineas. Si no las tenemos las añadimos.

text
AllowTcpForwarding yes

GatewayPorts yes

TCPKeepAlive yes

We restart the service

text
/etc/init.d/ssh restart

Creamos el túnel por donde nos conectaremos con el cliente web.

Bash
ssh -D rokitoh@red-orbita.es

We configure the client, I am going to use Google Chrome, but you can use any browser.

Pantallazo

 If we now check with a sniffer we can see that all connections when we are browsing are encrypted with ssh.

We could use this for other types of connections such as p2p, torrent, email and much more.

:wq!

Comments