Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

119
Visualizações
Mask IP Address for MongoDB Connection String

Summary

Hi I am Using a Linode Server Machine to Host a MongoDB Database, My Connection String Looks something like this:

mongodb://username:password@192.168.123.145:27017,129.547.965.154:27017,165.698.120.047/somedb?retryWrites=true&w=majority

Problem

Notice How this will expose the IP Address of the Machines as Well I can't find how to mask these IP addresses with another name like test.mongo.com or something.

Please Help in Getting these Masked

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

If you mask an IP still there is a chance for your IP to get exposed. As anybody can simply check your domain DNS records and find the MongoDB server's IP address. I'd suggest you keep what you have right now and focus on security. To project your MongoDB a good password and moreover, a good firewall configuration is enough. You may put a good password and use your server's firewall to grant specific IPs to access your server's port 27017. In this way, even they can see your IP they can't use your MongoDB server unless you whitelist their IP in the firewall.

about 4 years ago · Juan Pablo Isaza Relatório

0

I'm gonna assume you are trying to access the database directly from react since it is marked in the tags and you are asking this question;

Usually you don't access databases directly from the client in the case of a web application, you put a layer of APIs in between, so the client make requests to the APIs and only them connect to the database, then you can protect your APIs with a firewall and some auth rules if you need conditional access

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda