Is it possible to put Droplet behind NAT?

Posted February 28, 2020 1.9k views

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.

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
1 answer

Hi there @paulhannefortho,

I could suggest checking out this tutorial here on 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!

by Justin Ellingwood
NAT, or network address translation, is a general term for mangling packets in order to redirect them to an alternative address. Usually, this is used to allow traffic to transcend network boundaries. A host that implements NAT typically has access to two or more...