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
aptitude install openssh-serverInside the configuration file /etc/ssh/sshd_config buscamos las siguientes lineas. Si no las tenemos las añadimos.
AllowTcpForwarding yes
GatewayPorts yes
TCPKeepAlive yesWe restart the service
/etc/init.d/ssh restartCreamos el túnel por donde nos conectaremos con el cliente web.
ssh -D rokitoh@red-orbita.esWe configure the client, I am going to use Google Chrome, but you can use any browser.
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