|
90 | 90 | --dynamic-listeners-disable Disable dynamic listeners. |
91 | 91 | --external-server-mapping stringArray Mapping of Kafka server address to external address (host:port,host:port). A listener for the external address is not started |
92 | 92 | --forbidden-api-keys intSlice Forbidden Kafka request types. The restriction should prevent some Kafka operations e.g. 20 - DeleteTopics |
| 93 | + --forward-proxy string URL of the forward proxy. Supported schemas are http and socks5 |
93 | 94 | -h, --help help for server |
94 | 95 | --http-disable Disable HTTP endpoints |
95 | 96 | --http-health-path string Path on which to health endpoint (default "/health") |
|
121 | 122 | --sasl-jaas-config-file string Location of JAAS config file with SASL username and password |
122 | 123 | --sasl-password string SASL user password |
123 | 124 | --sasl-username string SASL user name |
124 | | - --socks5-address string Address of SOCKS5 proxy to connect through when connecting to kafka brokers |
125 | | - --socks5-password string Password for SOCKS5 proxy Username/Password Authentication |
126 | | - --socks5-username string Username for SOCKS5 proxy Username/Password Authentication |
127 | 125 | --tls-ca-chain-cert-file string PEM encoded CA's certificate file |
128 | 126 | --tls-client-cert-file string PEM encoded file with client certificate |
129 | 127 | --tls-client-key-file string PEM encoded file with private key for the client certificate |
@@ -212,17 +210,51 @@ Authentication between Kafka Proxy Client and Kafka Proxy Server with Google-ID |
212 | 210 |
|
213 | 211 | ### Connect to Kafka through SOCKS5 Proxy example |
214 | 212 |
|
| 213 | +Connect through test SOCKS5 Proxy server |
| 214 | +
|
| 215 | +``` |
| 216 | + kafka-proxy tools socks5-proxy --addr localhost:1080 |
| 217 | + |
215 | 218 | kafka-proxy server --bootstrap-server-mapping "kafka-0.grepplabs.com:9092,127.0.0.1:32500" \ |
216 | 219 | --bootstrap-server-mapping "kafka-1.grepplabs.com:9092,127.0.0.1:32501" \ |
217 | 220 | --bootstrap-server-mapping "kafka-2.grepplabs.com:9092,127.0.0.1:32502" |
218 | | - --socks5-address localhost:1080 |
| 221 | + --forward-proxy socks5://localhost:1080 |
| 222 | + |
| 223 | +``` |
| 224 | +
|
| 225 | +``` |
| 226 | + kafka-proxy tools socks5-proxy --addr localhost:1080 --username my-proxy-user --password my-proxy-password |
219 | 227 |
|
220 | 228 | kafka-proxy server --bootstrap-server-mapping "kafka-0.grepplabs.com:9092,127.0.0.1:32500" \ |
221 | 229 | --bootstrap-server-mapping "kafka-1.grepplabs.com:9092,127.0.0.1:32501" \ |
222 | 230 | --bootstrap-server-mapping "kafka-2.grepplabs.com:9092,127.0.0.1:32502" \ |
223 | | - --socks5-address localhost:1080 \ |
224 | | - --socks5-username my-proxy-user \ |
225 | | - --socks5-password my-proxy-password |
| 231 | + --forward-proxy socks5://my-proxy-user:my-proxy-password@localhost:1080 |
| 232 | + |
| 233 | +``` |
| 234 | +
|
| 235 | +### Connect to Kafka through HTTP Proxy example |
| 236 | +
|
| 237 | +Connect through test HTTP Proxy server using CONNECT method |
| 238 | +
|
| 239 | +``` |
| 240 | + kafka-proxy tools http-proxy --addr localhost:3128 |
| 241 | + |
| 242 | + kafka-proxy server --bootstrap-server-mapping "kafka-0.grepplabs.com:9092,127.0.0.1:32500" \ |
| 243 | + --bootstrap-server-mapping "kafka-1.grepplabs.com:9092,127.0.0.1:32501" \ |
| 244 | + --bootstrap-server-mapping "kafka-2.grepplabs.com:9092,127.0.0.1:32502" |
| 245 | + --forward-proxy http://localhost:3128 |
| 246 | + |
| 247 | +``` |
| 248 | +
|
| 249 | +``` |
| 250 | + kafka-proxy tools http-proxy --addr localhost:3128 --username my-proxy-user --password my-proxy-password |
| 251 | + |
| 252 | + kafka-proxy server --bootstrap-server-mapping "kafka-0.grepplabs.com:9092,127.0.0.1:32500" \ |
| 253 | + --bootstrap-server-mapping "kafka-1.grepplabs.com:9092,127.0.0.1:32501" \ |
| 254 | + --bootstrap-server-mapping "kafka-2.grepplabs.com:9092,127.0.0.1:32502" \ |
| 255 | + --forward-proxy http://my-proxy-user:my-proxy-password@localhost:3128 |
| 256 | + |
| 257 | +``` |
226 | 258 |
|
227 | 259 | ### Kubernetes sidecar container example |
228 | 260 |
|
|
0 commit comments