informatica:linux:tunel
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
informatica:linux:tunel [2012/10/05 15:20] – javi | informatica:linux:tunel [2014/08/29 10:47] – [Tunel simple] javi | ||
---|---|---|---|
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 ===== | ||
Line 28: | Line 55: | ||
ssh -L 8081: | ssh -L 8081: | ||
- | Si nos conectamos a localhost: | + | Si nos conectamos a localhost: |
Si el servicio ssh en C escucha en otro puerto: | Si el servicio ssh en C escucha en otro puerto: | ||
ssh -p PUERTO -L 8081: | ssh -p PUERTO -L 8081: | ||
+ | |||
===== Doble tunel ===== | ===== Doble tunel ===== |
informatica/linux/tunel.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1