Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set up NAT gateway for private Cloud Networks #1105

Open
ravi-ojha opened this issue Mar 11, 2025 · 1 comment
Open

How to set up NAT gateway for private Cloud Networks #1105

ravi-ojha opened this issue Mar 11, 2025 · 1 comment

Comments

@ravi-ojha
Copy link

ravi-ojha commented Mar 11, 2025

Problem

The setup recommends DHCP approach however the private instance loses connection in less than 24 hours. You can reproduce the issue. I verified it happens with two private instances and continued to just restart for 3 days to get it back up.

Here's the log of the issue where it loses the connection

Mar 11 10:01:38 tping-api dhcpcd[737]: enp7s0: failed to renew DHCP, rebinding
Mar 11 10:01:38 tping-api dhcpcd[737]: enp7s0: leased 10.0.0.3 for 86400 seconds
Mar 11 10:01:38 tping-api dhcpcd[737]: enp7s0: pid 0 deleted host route to 169.254.169.254 via 10.0.0.1
Mar 11 10:01:38 tping-api dhcpcd[737]: enp7s0: pid 0 deleted host route to 10.0.0.1
Mar 11 10:01:38 tping-api dhcpcd[737]: enp7s0: pid 0 deleted route to 10.0.0.0/16 via 10.0.0.1
Mar 11 10:05:01 tping-api CRON[4398]: pam_unix(cron:session): session opened for user root(uid=0) by root(uid=0)
Mar 11 10:05:01 tping-api CRON[4399]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Mar 11 10:05:01 tping-api CRON[4398]: pam_unix(cron:session): session closed for user root
Mar 11 10:10:01 tping-api systemd[1]: Starting sysstat-collect.service - system activity accounting tool...
Mar 11 10:10:01 tping-api systemd[1]: sysstat-collect.service: Deactivated successfully.

Suggested Fix

I haven't fixed it yet. Still looking for a resolution. AI and internet suggests that it should not use DHCP, instead it should be using static config.

@ravi-ojha
Copy link
Author

I'm sorry I haven't suggested any fix. I'll report back in a couple of days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant