You are not logged in.

#1 2013-05-26 14:05:51

ojZim
Member
From: Iran
Registered: 2013-05-05
Posts: 34

[SOLVED] How cat I make an http proxy from ssh?

Hi.
I can tunnel to ssh server using this:

ssh -N -D $myport $user@$serverip

It's working good. I tunneled to the server.
But I have a problem!
the created proxy is a Socks v5 proxy. I want to create a http proxy smile how can i do it?
Thanks! I waiting for your answers...

Last edited by ojZim (2013-05-26 17:55:36)

Offline

#2 2013-05-26 16:18:10

Gusar
Member
Registered: 2009-08-25
Posts: 3,606

Re: [SOLVED] How cat I make an http proxy from ssh?

You can't. What you can do is run a local http proxy that uses the ssh-created Socks5 as parent. Example config for polipo:

daemonise=true

proxyAddress=127.0.0.1
proxyName=localhost
allowedClients=127.0.0.1

socksParentProxy=localhost:7777
socksProxyType=socks5

7777 is an example, use $myport there. The default polipo port is 8123, meaning apps should be configured to use localhost:8123 as proxy.

Offline

#3 2013-05-26 17:55:20

ojZim
Member
From: Iran
Registered: 2013-05-05
Posts: 34

Re: [SOLVED] How cat I make an http proxy from ssh?

Gusar wrote:

You can't. What you can do is run a local http proxy that uses the ssh-created Socks5 as parent. Example config for polipo:

daemonise=true

proxyAddress=127.0.0.1
proxyName=localhost
allowedClients=127.0.0.1

socksParentProxy=localhost:7777
socksProxyType=socks5

7777 is an example, use $myport there. The default polipo port is 8123, meaning apps should be configured to use localhost:8123 as proxy.

Thanks for your help! It's worked very good and my problem is solved. wink
For installing and configuration polipo, other users can read this:
https://wiki.archlinux.org/index.php/Polipo

Last edited by ojZim (2013-05-26 17:56:39)

Offline

Board footer

Powered by FluxBB