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

427
Visualizações
How to restrict a server so it only allows SSH, a connection to an external RabbitMQ server, and a connection to an external MongoDB server?

I have a Ubuntu server which needs to only do the following:

  1. Allow SSH access from me. I'm thinking of using a combination of private key + password for this. I would mainly be pulling code from Github and updating software on the server. The solution for this seems to be AuthenticationMethods.

  2. Allow connections to an external RabbitMQ server. (There would be a local node app connecting to the RabbitMQ server).

  3. Allow connections to an external MongoDB database. (There would be a local node app connecting to the MongoDB database).

  4. All other connections should be blocked.

How can I accomplish this?

Thank you.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Put a firewall, allow only:

rabbitmq-ip:rabbitmq-port
mongodb-ip:mongodb-port
all-ips:ssh-port

And use a private key for SSH. This way, you can use that key for SSH connections and only people who have that key can do SSH to the server.

You also have to use SSH for git pulls as this configuration does not allow HTTPS connections to the server.

over 4 years ago · Santiago Trujillo 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