Necessary Firewall rules (Hosts and Ports) to reach Serverless MongoDB

Hi @Cristopher_Rosales - Welcome to the community!

In a typical server environment where the topology / architecture is more static / predictable, the adding of hosts or servers to a whitelist will generally work for your use case stated. However, serverless doesn’t currently provide the capability for you to “whitelist” a server / host. This is because in a serverless environment, the situation is a lot more dynamic, where resources are constantly added and removed according to your needs. Thus, the same method that works in a server environment won’t necessarily work the same way (or at all) in a serverless environment.

Having said that, if it suits your use case, please consider setting up a private endpoint for connectivity to serverless instances:

Hope this helps.

Regards,
Jason

4 Likes