informatica:linux:tunel
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatica:linux:tunel [2012/06/21 13:15] – javi | informatica:linux:tunel [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ssh tunel ====== | ====== ssh tunel ====== | ||
+ | Mas info: http:// | ||
+ | |||
ssh tunel tunnel -L | ssh tunel tunnel -L | ||
+ | |||
+ | |||
+ | |||
+ | ===== Tunel entre solo dos maquinas ===== | ||
+ | |||
+ | Direcciones IP: | ||
+ | |||
+ | | A | nuestra maquina | | ||
+ | | B | 192.168.1.2 | | ||
+ | |||
+ | Conectividad: | ||
+ | |||
+ | A -> B TCP 22 (SSH) | ||
+ | |||
+ | Objetivo: | ||
+ | |||
+ | A -> B TCP 8080 | ||
+ | |||
+ | Solucion: | ||
+ | |||
+ | ssh -L 8080: | ||
+ | |||
+ | Prueba: | ||
+ | |||
+ | http:// | ||
+ | | ||
+ | Nos estaremos conectando al puerto TCP 8080 de la maquina B | ||
===== Tunel simple ===== | ===== Tunel simple ===== | ||
+ | |||
+ | Direcciones IP: | ||
+ | |||
+ | | A | nuestra maquina | | ||
+ | | B | 192.168.1.2 | | ||
+ | | C | 192.168.1.1 | | ||
Conectividad: | Conectividad: | ||
Line 16: | Line 51: | ||
Solucion: | Solucion: | ||
- | | + | Lanzar desde nuestra maquina: |
+ | |||
+ | | ||
+ | |||
+ | Si nos conectamos a localhost: | ||
+ | |||
+ | Si el servicio ssh en C escucha en otro puerto: | ||
+ | |||
+ | ssh -p PUERTO -L 8081: | ||
- | * La direccion IP de C es 192.168.1.1 | ||
- | * Si nos conectamos a localhost: | ||
===== Doble tunel ===== | ===== Doble tunel ===== |
informatica/linux/tunel.1340284508.txt.gz · Last modified: 2015/04/13 20:19 (external edit)