Question

Internal IP only

  • Posted October 22, 2013

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.

Subscribe
Share

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

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.

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

You can also preferably drop all inbound packets on the eth0 (public) interface: <br> <br><pre>iptables -I INPUT -i eth0 -j DROP</pre>

Of course! <br>Remove “address”.

Couldn’t you go into <code>vim /etc/network/interfaces</code> and simply delete the interface to the public IP?

You could do this: <br>nano /etc/SERVER SOFTWARE NAME/sites-available/default <br> <br>then add deny from all