-
Notifications
You must be signed in to change notification settings - Fork 61
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
About Transparent Proxy #10
Comments
I'm desperately asking for help right now, I can only hope for now |
I extracted a simple example of the core http proxy of the gomitmproxy, which is printed normally in http
It can be obtained normally, but if the proxy is transparent, how should this code be changed?
|
If the official can give a simple example of modification, it would be great, thank you very much |
Well, the problem is that currently it simply does not support the transparent proxy approach, it expects to be used as a normal proxy. The code requires substantial changes to support this. |
If you add a transparent proxy, roughly what you need to do? Is it first to initiate a CONNECT request to gomitmproxy through TCP for iptable traffic, when encountering HTTPS traffic? It seems that if a third-party transparent proxy (support upstream is HTTP https://github.com/xiqingping/transproxy) is connected between iptable and gomitmproxy, it can be used, but I want to integrate the transparent proxy function into gomitmproxy (this way I don’t need to open another program), but due to my limited personal ability, I can’t implement it yet. Can the author provide some ideas? |
First of all, I am very grateful to the AdguardTeam team for giving so many excellent open source projects, from which I have learned a lot. Recently, I have been fascinated by the gomitmproxy project. The code of this project is very elegant, but I want to enter gomitmproxy through iptables traffic on Openwrt, but Encountered many setbacks.
So, I would like to ask you to help me, now I will describe the problem in detail:
First of all, there is no problem with HTTP proxying, it works fine. But I wanted to use a transparent proxy, so I replaced
&net.TCPAddr
withnet.ResolveTCPAddr
:It seems that the code does not report an error, but when it is actually run, a huge problem occurs. First of all, if you access the content of port 80, there seems to be no big problem, and you can access it normally:
But when accessing the link to 443, it cannot be accessed, and a bunch of garbled characters are prompted:
It should be a CONNECT request, but the above is not.
I have been troubled by this problem for a long time. I hope the official can help me when I see my post, and I will continue to support you with more and better products.
The text was updated successfully, but these errors were encountered: