You cannot access Kafka instances through a proxy. For more information, see detailed information.
The following steps shows how the client accesses the server:
bootstrap.serversrandomly access the server to obtain Metadata.
The IP address in the Metadata is used for sending and receiving subsequent messages.
After the proxy is configured, the first step is normal, but in the second step, the client still accesses through the IP address in the Metadata, resulting in access failure. Therefore, the network must be fully connected.
Note: If you use an on-premises IDC to access the off-premises network, you need to establish a leased line connection. For more information about leased lines, see leased Line connection.
- Message Queue for Apache Kafka