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

Does ip_rules work? #250

Open
mastoj opened this issue Dec 24, 2024 · 1 comment
Open

Does ip_rules work? #250

mastoj opened this issue Dec 24, 2024 · 1 comment

Comments

@mastoj
Copy link

mastoj commented Dec 24, 2024

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.

@dglsparsons
Copy link
Collaborator

Hi @mastoj, thanks for raising this! I've reached out to the firewall team and I'll let you know 🙏

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