You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "ljlao (via GitHub)" <gi...@apache.org> on 2026/05/18 05:57:47 UTC
[I] Support SOCKS5 proxy for tri protocol in NettyConnectionClient [dubbo]
ljlao opened a new issue, #16276:
URL: https://github.com/apache/dubbo/issues/16276
### Pre-check
- [x] I am sure that all the content I provide is in English.
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar feature requirement.
### Apache Dubbo Component
Java SDK (apache/dubbo)
### Descriptions
**Body:**
Hello maintainers,
We are currently using Dubbo **3.3.6** with the **tri (Triple) protocol**. While reviewing the source code, I noticed that `org.apache.dubbo.remoting.transport.netty4.NettyConnectionClient` still contains the following TODO:
```java
// set null but do not close this client, it will be reconnecting in the future
ch.closeFuture().addListener(channelFuture -> clearNettyChannel());
// TODO support Socks5
```
From our current testing, it seems that **tri protocol does not yet support SOCKS5 proxying** on the client side. JVM-level proxy settings such as:
```bash
-DsocksProxyHost=...
-DsocksProxyPort=...
```
do not appear to work for tri connections, which is understandable since the client is based on **Netty** rather than plain JDK sockets.
We have a real use case for this feature, such as:
- local development environments accessing remote Dubbo services through a SOCKS5 proxy
- cross-network or restricted-network scenarios where direct connectivity is not available
Could you please clarify:
1. Is **SOCKS5 support for tri protocol** already on the roadmap?
2. If yes, is there any **planned version or milestone** for it?
3. If not, what would be the **recommended extension point or workaround** for now?
For example, is it expected to support something like Netty's `Socks5ProxyHandler` in the client pipeline in the future?
Environment:
- Dubbo version: **3.3.6**
- Protocol: **tri / Triple**
- Transport: **Netty**
Thanks in advance.
### Related issues
_No response_
### Are you willing to submit a pull request to fix on your own?
- [x] Yes I am willing to submit a pull request on my own!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] Support SOCKS5 proxy for tri protocol in NettyConnectionClient [dubbo]
Posted by "LeonxLJX (via GitHub)" <gi...@apache.org>.
LeonxLJX commented on issue #16276:
URL: https://github.com/apache/dubbo/issues/16276#issuecomment-5493438136
I'd like to take this one (`Support SOCKS5 proxy for tri protocol in NettyConnectionClie`). I'll dig into the root cause and follow up with a PR shortly. (claiming via @LeonxLJX)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] Support SOCKS5 proxy for tri protocol in NettyConnectionClient [dubbo]
Posted by "LeonxLJX (via GitHub)" <gi...@apache.org>.
LeonxLJX commented on issue #16276:
URL: https://github.com/apache/dubbo/issues/16276#issuecomment-5492478031
I'd like to take this one (`Support SOCKS5 proxy for tri protocol in NettyConnectionClie`). I'll look into the root cause and follow up with a PR. (claiming via @LeonxLJX)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] Support SOCKS5 proxy for tri protocol in NettyConnectionClient [dubbo]
Posted by "zrlw (via GitHub)" <gi...@apache.org>.
zrlw commented on issue #16276:
URL: https://github.com/apache/dubbo/issues/16276#issuecomment-4484193516
Could you test whether https://github.com/apache/dubbo/pull/16285 meets your requirements?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] Support SOCKS5 proxy for tri protocol in NettyConnectionClient [dubbo]
Posted by "LeonxLJX (via GitHub)" <gi...@apache.org>.
LeonxLJX commented on issue #16276:
URL: https://github.com/apache/dubbo/issues/16276#issuecomment-5493415455
I'd like to take this one (`Support SOCKS5 proxy for tri protocol in NettyConnectionClie`). I'll look into the root cause and follow up with a PR. (claiming via @LeonxLJX)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] Support SOCKS5 proxy for tri protocol in NettyConnectionClient [dubbo]
Posted by "dongyikuan919 (via GitHub)" <gi...@apache.org>.
dongyikuan919 commented on issue #16276:
URL: https://github.com/apache/dubbo/issues/16276#issuecomment-4534409513
For tri over Netty, JVM-level `socksProxyHost` is unlikely to help because the connection is not created through JDK socket APIs. Adding a `Socks5ProxyHandler` in the Netty pipeline looks like the right direction.
When testing #16285, I would suggest covering at least these cases:
1. direct connection unchanged when no proxy config is present;
2. SOCKS5 connection succeeds for tri unary call;
3. reconnect path still installs the proxy handler after `clearNettyChannel()`;
4. TLS + SOCKS5 ordering is correct, i.e. proxy handshake happens before TLS/HTTP2 handlers start application traffic.
The reconnect case is easy to miss here because the TODO is close to the close-future cleanup path.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org