Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your 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.
Heya,
Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.
To troubleshoot your problem, let’s start with some basic checks:
sysctl configuration.Here’s a corrected example of how you should set your iptables:
- sysctl net.ipv4.ip_forward=1
- iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8270 -j DNAT --to-destination 192.168.254.2:8270
- iptables -A FORWARD -p tcp -d 192.168.254.2 --dport 8270 -j ACCEPT
- iptables -t nat -A POSTROUTING -s 192.168.254.2 -o eth0 -j MASQUERADE
Remember to replace eth0 with the right interfaces in your case.
Also, ensure to make these changes permanent, as they will be lost after a reboot if not saved. You can use iptables-persistent to make the changes permanent.
Here’s a link to the related DigitalOcean documentation
Hope that this helps!