You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit implements support the PROXY protocol so that the broker
will be able to determine a client's original IP address despite the
client's connection coming through a reverse proxy (e.g. HAProxy,
ngingx, etc.). Changes include:
- A new Netty handler to extract relevant details out of PROXY Protocol
messages and make them available to the broker
- A new Netty handler to enforce the acceptor's PROXY Protocol config
- A new chapter in the user manual
- Updated logging to use this new data
- Expose this new data via management
- Disambiguate some variables names related to SOCKS proxy support
- Embedded Netty-based PROXY server implementation for testing
Copy file name to clipboardExpand all lines: artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnection.java
Copy file name to clipboardExpand all lines: artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/NettyConnector.java
+24-24Lines changed: 24 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -211,19 +211,19 @@ public class NettyConnector extends AbstractConnector {
211
211
// will be handled by the server's http server.
212
212
privatebooleanhttpUpgradeEnabled;
213
213
214
-
privatebooleanproxyEnabled;
214
+
privatebooleansocksEnabled;
215
215
216
-
privateStringproxyHost;
216
+
privateStringsocksHost;
217
217
218
-
privateintproxyPort;
218
+
privateintsocksPort;
219
219
220
-
privateSocksVersionproxyVersion;
220
+
privateSocksVersionsocksVersion;
221
221
222
-
privateStringproxyUsername;
222
+
privateStringsocksUsername;
223
223
224
-
privateStringproxyPassword;
224
+
privateStringsocksPassword;
225
225
226
-
privatebooleanproxyRemoteDNS;
226
+
privatebooleansocksRemoteDNS;
227
227
228
228
privatebooleanuseServlet;
229
229
@@ -382,18 +382,18 @@ public NettyConnector(final Map<String, Object> configuration,
Copy file name to clipboardExpand all lines: artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/netty/TransportConstants.java
+26-21Lines changed: 26 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,8 @@ public class TransportConstants {
0 commit comments