is this possible to connect with airbyte to privat...
# ask-ai
s
is this possible to connect with airbyte to private mongodb cluster using network load balancer
u
Yes, it is possible to connect Airbyte to a private MongoDB cluster using a network load balancer. However, the specific configuration may depend on your network setup and security policies. Airbyte supports connecting to MongoDB instances via an SSH Tunnel. This is particularly useful when it is not possible or against security policy to connect to your MongoDB instance directly, for example, when it does not have a public IP address. In this case, you can configure Airbyte to connect to an intermediate server (a.k.a. a bastion server) that does have direct access to the MongoDB instance. Airbyte connects to the bastion and then asks the bastion to connect directly to the server. This feature requires additional configuration when creating the source. You can find more details about this in the [Airbyte documentation](https://docs.airbyte.com/integrations/destinations/mongodb#connection-via-ssh-tunnel). If you are using a load balancer to access Airbyte, you may need to increase the timeout configured for your server if you encounter issues like upstream request timeouts. This is because the connector might be taking a long time to read all MongoDB collections. You can find more details about this in this [forum post](https://discuss.airbyte.io/t/2665). If you are running MongoDB inside Docker, you might need to use different local addresses to connect to the container (
localhost
,
127.0.01
or
host.docker.internal
). If these don't solve the problem, you probably need to create a network both Airbyte and your local Mongo are connected to. You can find more details about this in this [Github discussion](https://github.com/airbytehq/airbyte/discussions/32347). Please note that you should also ensure that the deployed pods have the right permissions to make requests to your external database, and that firewalls or lacking permissions are not interfering with pod-pod communication. You can find more details about this in the [Airbyte documentation](https://docs.airbyte.com/enterprise-setup/implementation-guide#configuring-ingress).
s
can you please share an example for connecting using bastion host