[email protected] wrote:
> 2010/1/31 Sebastian Bassi <[email protected]>:
>> 2010/1/31 Alejandro Santos <[email protected]>:
>>> Si tenés algun servidor en USA podés usar ssh -D para levantar un tunel
>>> SOCKS seguro. No probé con Hulu.com pero acabo de usarlo para navegar
>>> por internet porque mi ISP apesta (hay un proxy que esta roto).
>> sba...@sbassi-msi:~$ ssh -D localhost:8081 -l root midominio.com
>>
>> Me logueo, y entro como siempre. Luego voy al navegador, configuro el
>> proxy a localhost, puerto 8081, socks v4 y nada. Voy a una página y me
>> devuelve (segun "Tamper Data" plugin) un OK 200 cada pagina y nada
>> mas.
>> Lei esto:
>> http://dltj.org/article/ssh-as-socks-proxy/
>> y esto:
>> http://osdir.com/ml/org.user-groups.ale/2003-03/msg01182.html
>> todos dicen mas o menos lo mismo, pero no me funciona. Vos que lo
>> usaste, ¿cuando te logueas con -D al server via ssh, se ve todo igual?
> 
> ssh -N -L 4128:localhost:3128 u...@server
> 
> donde 4128 va a ser el puerto a poner en tu browser y 3128 el puerto
> local del squid al que te conectas.
> 

ssh -L es un tunel punto-a-punto entre tu PC y una única IP remota. No
te sirve para navegar por varios sitios Webs (a menos que pongas todas
las IPs de los sitios remotos manualmente):

 -L [bind_address:]port:host:hostport
     Specifies that the given port on the local (client) host is to
     be forwarded to the given host and port on the remote side.

Para levantar un servidor SOCKS hay que usar -D:

 -D [bind_address:]port
     Specifies a local “dynamic” application-level port forwarding.
     This works by allocating a socket to listen to port on the local
     side, optionally bound to the specified bind_address.  Whenever
     a connection is made to this port, the connection is forwarded
     over the secure channel, and the application protocol is then
     used to determine where to connect to from the remote machine.
     Currently the SOCKS4 and SOCKS5 protocols are supported, and ssh
     will act as a SOCKS server.

Haciendo:

 $ ssh -D 8081 u...@server

En Firefox hay que poner: localhost, 8081 en la parte de configuración
de proxy en los campos de SOCKS.

Lo estoy usando y anda. Puedo navegar por cualquier sitio web usando el
server SSH como Proxy SOCKS.

-- 
Alejandro Santos
http://www.alejolp.com.ar
--
Para desuscribirte tenés que visitar la página
https://listas.linux.org.ar/mailman/listinfo/lugar-gral/
Usuarios Software Libre Argentina (USLA)

Responder a