Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to connect through an HTTP proxy? #12

Open
hillz2 opened this issue Nov 16, 2017 · 12 comments
Open

How to connect through an HTTP proxy? #12

hillz2 opened this issue Nov 16, 2017 · 12 comments

Comments

@hillz2
Copy link

hillz2 commented Nov 16, 2017

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
Copy link
Collaborator

tanmaytat11 commented Nov 16, 2017 via email

@hillz2
Copy link
Author

hillz2 commented Nov 16, 2017

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
Copy link

gilcu3 commented Nov 30, 2017

@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
Copy link
Author

hillz2 commented Nov 30, 2017

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
Copy link

gilcu3 commented Nov 30, 2017

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
Copy link
Author

hillz2 commented Nov 30, 2017

HTTP proxy

@hillz2
Copy link
Author

hillz2 commented Nov 30, 2017

With no authenticaton

@gilcu3
Copy link

gilcu3 commented Nov 30, 2017

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
Copy link
Author

hillz2 commented Nov 30, 2017

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

@hillz2
Copy link
Author

hillz2 commented Dec 2, 2017

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
Copy link

gilcu3 commented Dec 4, 2017

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants