Linux – How to secure local servers

linuxlocal-systemportSecurityUbuntu

I have solr (an http web server used for searching) runs on port 8334, rabbitmq messaging server runs on port 6633.

In the same machine, I have the web server which is accessed from outside world.

Now How can I secure the solr and rabbit-mq server so that no one from outside network can access the tcp server port? This means that solr and rabbit-mq server should be called only within the local machine.

I run the web server, db server, solr and rabbitmq in the same system. I use ubuntu 9.10 server.

can someone help me on this?

Best Answer

Another good (and simple) practice to permit only local access to service(s) is to bind your service(s) to 127.0.0.1...