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

Error without default network #1

Open
marodriguezacciona opened this issue Dec 26, 2019 · 1 comment
Open

Error without default network #1

marodriguezacciona opened this issue Dec 26, 2019 · 1 comment

Comments

@marodriguezacciona
Copy link

If default VPN does not exist, export fails.
Script could check it and create default networks before
gcloud compute networks create default
gcloud compute firewall-rules create default-allow-icmp --network default --allow icmp --source-ranges 0.0.0.0/0
gcloud compute firewall-rules create default-allow-ssh --network default --allow tcp:22 --source-ranges 0.0.0.0/0
gcloud compute firewall-rules create default-allow-internal --network default --allow tcp:0-65535,udp:0-65535,icmp --source-ranges 10.128.0.0/9
and after export delete them again
gcloud compute firewall-rules delete default-allow-icmp
gcloud compute firewall-rules delete default-allow-ssh
gcloud compute firewall-rules delete default-allow-internal
gcloud compute networks delete default

@biofer76
Copy link
Owner

Thank you for your suggestion, never tried because never worked on a project without default network. Every new GCP project starts with a default network and firewall rules.
I will check asap.

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

2 participants