Internal IP only

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

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!