Internal IP only

Posted October 22, 2013 3.7k views
Is there any way to give only the internal IP to the Ubuntu droplet? Just because it's a worker web server behind the load balancer and we don't want this machine be visible from outside.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
5 answers
You could do this:
nano /etc/SERVER SOFTWARE NAME/sites-available/default

then add deny from all
Couldn't you go into vim /etc/network/interfaces and simply delete the interface to the public IP?
Of course!
Remove "address".
You can also preferably drop all inbound packets on the eth0 (public) interface:

iptables -I INPUT -i eth0 -j DROP

I had the same question. I’m still not sure if it is a good idea.