Table of Contents | ||
---|---|---|
|
VPNs are powerful tools and can help keep your network traffic secure. If you have a VPS or dedicated server, you could even run a VPN service from your server. The issue is that setting up and configuring a VPN can be time consuming and complicated. For some uses, there may be an easier way to securely route your traffic through a remote server (like your VPS or dedicated server).
An SSH tunnel is another method of rerouting some or all traffic from one location (like your local computer) through another (your remote server). All of this rerouted traffic is securely encrypted as it travels between your local machine and the remote server thanks to SSH. With a tunnel active and traffic proxied through the tunnel, that traffic will appear to be coming from your remote server instead of your local machine. This can be useful to bypass remote network issues or restrictive firewalls.
This article will explain how you can set up an SSH tunnel from your local Windows machine.
Requirements
In order to set up an SSH tunnel between a Windows machine and a remote server, you need a few things:
- A Windows machine with at least one open port (the ability to connect to your remote server via SSH).
- An installed copy of a tool capable of creating an SSH tunnel (like Bitvise SSH Client or PuTTY).
- A browser that can use a proxy connection.
- A remote server running SSH and the ability to make other outbound connections to the internet.
- A user account on the remote server that is able to log in via SSH.
Setting up an SSH Tunnel
...
Las VPN son herramientas poderosas y pueden ayudarlo a mantener seguro el tráfico de su red. Si tiene un VPS o un servidor dedicado, incluso podría ejecutar un servicio VPN desde su servidor. El problema es que instalar y configurar una VPN puede llevar mucho tiempo y ser complicado. Para algunos usos, puede haber una forma más fácil de enrutar de forma segura su tráfico a través de un servidor remoto (como su VPS o servidor dedicado).
Un túnel SSH es otro método para redirigir parte o todo el tráfico desde una ubicación (como su computadora local) a través de otra (su servidor remoto). Todo este tráfico redirigido se cifra de forma segura mientras viaja entre su máquina local y el servidor remoto gracias a SSH. Con un túnel activo y el tráfico a través del túnel, ese tráfico parecerá provenir de su servidor remoto en lugar de su máquina local. Esto puede ser útil para eludir problemas de red remota o cortafuegos restrictivos.
Este artículo explicará cómo puede configurar un túnel SSH desde su máquina Windows local.
Requisitos
Para configurar un túnel SSH entre una máquina con Windows y un servidor remoto, necesita algunas cosas:
- Una máquina Windows con al menos un puerto abierto (la capacidad de conectarse a su servidor remoto a través de SSH).
- Una copia instalada de una herramienta capaz de crear un túnel SSH (como Bitvise SSH Client o PuTTY).
- Un navegador que puede usar una conexión proxy.
- Un servidor remoto que ejecuta SSH y la capacidad de realizar otras conexiones salientes a Internet.
- Una cuenta de usuario en el servidor remoto que puede iniciar sesión a través de SSH.
Configuración de un túnel SSH
Para hacer un túnel SSH, elija el programa que ha elegido usar de las pestañas a continuación y siga las instrucciones.
Configurar el servicio de proxy
Tip |
---|
Visite |
Configure the Proxy Service
Tip |
---|
Visit https://hostdime.com/ip in your web browser before completing this step and make a note of the IP address. The reported IP address should change once the system is set to use the proxy. |
Now that there is an active SSH tunnel, you need to configure your local computer to use the tunnel to route traffic.
Warning |
---|
Your traffic is not secure until you complete this step. |
...
en su navegador web antes de completar este paso y tome nota de la dirección IP. La dirección IP informada debería cambiar una vez que el sistema esté configurado para usar el proxy. |
Ahora que hay un túnel SSH activo, debe configurar su computadora local para usar el túnel para enrutar el tráfico.
Warning |
---|
Su tráfico no es seguro hasta que complete este paso. |
La mejor manera de configurar el servicio de proxy en Windows 10 es configurarlo para su cuenta de usuario en la máquina local. Debe usar ese método a menos que no pueda hacerlo por algún motivo. Alternativamente, puede configurar su navegador web solo para usar el proxy.
Deshabilitar el túnel SSH y el servicio de proxy
Cuando desee que el enrutamiento del tráfico vuelva a la normalidad, debe desactivarlos en el orden inverso al que los habilitó originalmente.
- Deshabilite el uso del proxy SOCKS.
- Deshabilite el túnel SSH y cierre sesión en su servidor remoto.
- Confirme que el tráfico vuelve a fluir con normalidad
Disabling the SSH Tunnel and Proxy Service
When you want to return traffic routing to normal, you should turn them off in the opposite order that you enabled them originally.
- Disable using the SOCKS proxy.
- Disable the SSH Tunnel and Log out of your remote server.
- Confirm traffic is once again flowing normally.