-
Notifications
You must be signed in to change notification settings - Fork 655
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
reactor\netty\tcp\ProxyProvider.java no HTTPS support? #2165
Comments
@bobdeanant Please provide more information how you enable the proxy in Spring Cloud Gateway. Do you use https://projectreactor.io/docs/netty/release/api/reactor/netty/transport/ClientTransport.html#proxyWithSystemProperties-- ? |
@violetagg thanks for a quick response.
Thanks |
In addition to |
I see Spring Cloud Gateway has some configuration |
@violetagg I tried below things and everytime ending up in "io.netty.handler.proxy.ProxyConnectException: http, none, myproxy.com => www.google.com:443, java.io.IOException: Connection reset by peer" Approach 1. I used spring cloud gateway configuration and added below in application.properties
Where myproxy.com is my host and is a squid proxy which I set on linux machine and is accessible with https://myproxy.com:3129 on TLS Approach 2: By creating a custom httpclient
Then add this as bean
Also add below snippet in application.properties so to create a trustmanager with my proxy certificates Where myproxy-com.pem is PEM file for my certificate Thanks |
Hi Violeta, Thanks for the help. Here are few observations and points I have which could be taken into consideration.
Below is my SQUID proxy configuration for HTTP (3128) and HTTPS (3129).
|
I just got a private meeting with @bobdeanant, and in the end, it turns out that what is needed is just to use usual proxy tunneling over a proxy http port, not https.
I'm closing this issue for the moment, but you can reopen if needed. |
reactor\netty\tcp\ProxyProvider.java
Why would you not add HTTPS support for proxy ?
While using netty in spring cloud gateway. I am trying to connect to HTTPS type of proxy (Both with and without authentication). The proxy settings are provided using VM args like -Dhttps.proxyHost=myproxy.com -Dhttps.proxyPort=. I have also created a trust manager and set the same in client but while connecting to destination host like google.com am getting
"Caused by: io.netty.handler.proxy.ProxyConnectException: http, none, myproxy.com /xx.xxx.xxx.xxx:xxxx => www.google.com:443, java.io.IOException: Connection reset by peer"
Could you please point me to what am I doing wrong.
The text was updated successfully, but these errors were encountered: