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

[Feature Request] HTTP proxy: relay HTTP request to upstream proxy without CONNECT #5789

Open
nicerloop opened this issue Oct 19, 2023 · 1 comment
Labels
kind/enhancement New feature or request triage/next-candidate Discuss if it should be moved to "Next" milestone

Comments

@nicerloop
Copy link

Problem Description

My corporate proxy does not allow using CONNECT to establish connections to port 80, but requires cleartext HTTP proxy requests. The currently used moproxy does not handle such case.

Proposed Solution

Connections to port 80 can be checked for HTTP correctness, and be proxied as GET/POST/PUT/xxx requests to the upstream HTTP proxy. See https://github.com/darkk/redsocks/blob/master/http-relay.c for inspiration.

Additional Information

I have used, in a similar context, redsocks to achieve such redirections from a Docker for Windows environment, with two chains: one for port 80 to the http_relay module, the other for the rest to the http_connect module.

See:

https://github.com/darkk/redsocks
https://github.com/k-labs/docker-forgetproxy
https://github.com/ncarlier/dockerfiles/tree/master/redsocks

Already open upstream as sorz/moproxy#23

@nicerloop nicerloop added the kind/enhancement New feature or request label Oct 19, 2023
@rak-phillip rak-phillip added the triage/next-candidate Discuss if it should be moved to "Next" milestone label Oct 19, 2023
@nicerloop
Copy link
Author

#4603

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request triage/next-candidate Discuss if it should be moved to "Next" milestone
Projects
None yet
Development

No branches or pull requests

2 participants