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

Please add support for ipv6-icmp IP protocol #535

Closed
simondeziel opened this issue Dec 20, 2023 · 2 comments
Closed

Please add support for ipv6-icmp IP protocol #535

simondeziel opened this issue Dec 20, 2023 · 2 comments
Labels
blocked Blocked by some other work enhancement New feature or request Stale upstream Work required on Terraform core or provider

Comments

@simondeziel
Copy link

TL;DR

Trying to add a rule for ICMPv6:

module "firewall-rules" {
  source       = "terraform-google-modules/network/google//modules/firewall-rules"
  project_id   = var.project_id
  network_name = module.vpc.network_name

  ingress_rules = [{
    {
      name          = "icmp-v6"
      source_ranges = ["::/0"]
      allow         = [{
        protocol = "ipv6-icmp"
      }]
    },
  ]

Fails:

│ Error: Error updating Firewall "projects/<project>/global/firewalls/icmp-v6": googleapi: Error 400: Invalid value for field 'resource.allowed[0].IPProtocol': 'ipv6-icmp'. Must be one of ["ah", "all", "esp", "icmp", "ipip", "sctp", "tcp", "udp"] or an IP protocol number between 0 and 255., invalid
│ 
│   with module.firewall-rules.google_compute_firewall.rules_ingress_egress["icmp-v6"],
│   on .terraform/modules/firewall-rules/modules/firewall-rules/main.tf line 63, in resource "google_compute_firewall" "rules_ingress_egress":
│   63: resource "google_compute_firewall" "rules_ingress_egress" {
│ 

As a workaround, one can use the IP protocol number 58.

Terraform Resources

No response

Detailed design

No response

Additional information

No response

@simondeziel simondeziel added the enhancement New feature or request label Dec 20, 2023
@daniel-cit
Copy link

There is an issue opened in the provider too
hashicorp/terraform-provider-google#16600

@imrannayer imrannayer added upstream Work required on Terraform core or provider blocked Blocked by some other work labels Jan 3, 2024
Copy link
Contributor

github-actions bot commented Mar 3, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Mar 3, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked by some other work enhancement New feature or request Stale upstream Work required on Terraform core or provider
Projects
None yet
Development

No branches or pull requests

3 participants