I followed this tutorial to set up a gateway server and VPC-only backend server (I’ll refer to them as GW and BE for brevity’s sake). However, after removing the public IP from the netplan file in the last step of the BE configuration guide, the backend server cannot access the internet at all. For whatever reason it seems the backend server is not successfully using the GW as a proxy to access the web. Whenever I try to ping a site (i.e. google.com) from the BE it gives me the error: “Temporary failure in name resolution.”
I know some people have had trouble getting this configuration to work because UFW was blocking routing requests on the GW server, but the results are the same for me even if I disable UFW on both servers. I know the GW and BE are connected in the network because I can ping the BE via its private IP from the GW. Any help with why this isn’t working would be greatly appreciated. I also don’t know how to troubleshoot where in the rerouting process the problem is occurring, so tips in that vein would be useful as well.
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 $200 of credit to try our products over 60 days!