Question

Is it possible to put Droplet behind NAT?

Is it possible to put a Droplet behind NAT? So I can simulate a Computer in another normal Network that is typically behind a NAT.

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.

Hi there @paulhannefortho,

I could suggest checking out this tutorial here on how to forward ports through a Linux gateway with Iptables:

https://www.digitalocean.com/community/tutorials/how-to-forward-ports-through-a-linux-gateway-with-iptables

It goes through the process of permitting forwarding at the kernel level, setting up access to allow forwarding of the specific port’s traffic between two interfaces on the firewall system, and configuring the NAT rules so that the packets can be routed accordingly.

Hope that this helps! Regards, Bobby