Skip to content

Does ip_rules work? #250

Open
Open
@mastoj

Description

@mastoj

I have a very small example:

resource "vercel_firewall_config" "ip-blocking" {
  project_id = "project id"

  ip_rules {
    # deny this subnet for all my hosts
    rule {
      action   = "deny"
      ip       = "51.85.0.0/16"
      hostname = "*"
    }

    rule {
      action   = "challenge"
      ip       = "1.2.3.4"
      hostname = "example.com"
    }

    rule {
      action   = "bypass"
      ip       = "1.1.1.1"
      hostname = "example.com"
    }
  }
}

I expected to get something in "System Bypass Rules", but everything is under IP blocking:

image

So I wonder if it should be possible to use "challenge" or "bypass" or if I need a custom rule for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions