I have 2 droplets. Lets say FWserver and APPserver. I want to make sure that all inbound and outbound traffic in my private networking is going via FWserver. on FWserver,eth0 is connected to internet (ip 139.59.x.x) and eth1 is connected internally to private network (10.139.y.y).
on FWserver, I did the following echo 1 > /proc/sys/net/ipv4/ip_forward route add -net 10.0.0.0./16 dev eth0 iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
I am able to ping and connect to private networking ip 10.139.y.y However I am unable to reach the public ip 139.59.x.x
I guess that is the first step before I can connect to internet from APPserver via FWsever
Please help. this is urgent for me to setup my private networking
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!