thispc / psiphon

A multi-functional version of a popular network circumvention tool
GNU General Public License v3.0
229 stars 59 forks source link

How to connect through an HTTP proxy? #12

Open hillz2 opened 6 years ago

hillz2 commented 6 years ago

In psiphon on android we can connect to a server via an HTTP proxy like this, how do we do it here ? screenshot_20171116-171649

tanmaytat11 commented 6 years ago

This python client creates a socks proxy so if you want to create a HTTP proxy, you must use an application that converts the socks to a HTTP proxy. Maybe that will work try it.

On 16-Nov-2017 3:53 PM, "hillz2" notifications@github.com wrote:

In psiphon on android we can connect to a server via an HTTP proxy like this, how do we do it here ? [image: screenshot_20171116-171649] https://user-images.githubusercontent.com/25127225/32886285-cbf47a6e-caf2-11e7-8d2e-621a20e7404e.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/thispc/psiphon/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/AMnGkeKu7Iz467N6iUVA1izxgmr1P-v7ks5s3A0igaJpZM4QgQ65 .

hillz2 commented 6 years ago

I'm sorry but I don't think you get it. I'm not trying to create an HTTP proxy. I'm trying to connect to a psiphon server through an HTTP proxy. Just like when you use the option http-proxy on OpenVPN to connect to a VPN server

gilcu3 commented 6 years ago

@hillz2 I have used redsocks and corkscrew for that matter. With redsocks you set up a transparent proxy in your machine. With corkscrew you can wrap up the internal ssh connection used by psiphon through an http proxy like squid. Tell me about your environment if you need more details.

hillz2 commented 6 years ago

My main goal is to run this on openwrt, but right now I'm just trying to get this to work on my manjaro pc. Can you please tell me step by step on how to do that?

gilcu3 commented 6 years ago

Manjaro :) nice!! I need to know the type of proxy you need to authenticate to, for example to check if it's compatible with corckscrew (only basic auth in the official version). Else we must use redsocks (I advise this fork which currently works in archlinux).

hillz2 commented 6 years ago

HTTP proxy

hillz2 commented 6 years ago

With no authenticaton

gilcu3 commented 6 years ago

then you could use corkscrew as is :) Install corkscrew from the repo, then look for the ssh line in the psiphon python code (in file psi_ssh_connection.py) and add the parameter for corkscrew as explained in the corresponding README.

hillz2 commented 6 years ago

Thanks I'll do that when I get home, I'm replying your comments on my phone right now, reports later

hillz2 commented 6 years ago

Thanks @gilcu3 I found it, they're in command_line functions. Another question, is it possible to use this script with the current version of openssh ? It's a bit of a security concern for me to downgrade openssh to version 5.

gilcu3 commented 6 years ago

I use it with the bundled openssh code, but you should try it, it's not hard to modify the same python code to achieve it.

Oniaskadye commented 3 years ago

Can anyone explain how to connect psiphon through HTTP proxy and all the settings thank you in advance