Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

428
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!