Internal IP only

October 22, 2013 3.3k 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.
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?
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.

Have another answer? Share your knowledge.