Coder Social home page Coder Social logo

Comments (6)

chrisreeves- avatar chrisreeves- commented on June 16, 2024 1

All good @browningluke thanks for your extremely fast response! :) :)

The provider is ssooooo good so thanks for all the hard work you've put into it to date!

from terraform-provider-opnsense.

chrisreeves- avatar chrisreeves- commented on June 16, 2024 1

Beautiful, that fixed it!

Thanks again :) :)

from terraform-provider-opnsense.

browningluke avatar browningluke commented on June 16, 2024

Hey @chrisreeves-, thanks for opening this issue!

Unfortunately this is an oversight of how this resource was implemented. Even though the docs say that this is possible, because the destination.port is expecting an integer, it fails.

I'll get working on a fix, should be out in a few days. However it may result in you having to remove & import the existing rules you've created, since the schema will change slightly. Sorry about that!

from terraform-provider-opnsense.

browningluke avatar browningluke commented on June 16, 2024

Hey there @chrisreeves- , this should be fixed in v0.9.0. I'll close this issue now, but feel free to re-open it if you still run into issues!

Just for clarity's sake, this is how you define port ranges now:

  destination = {
    net  = "192.168.0.1"
    port = "80-443"
  }

from terraform-provider-opnsense.

chrisreeves- avatar chrisreeves- commented on June 16, 2024

Hey @browningluke it still seems to be an issue in 0.9.0

I've tried to remove all resources and do a fresh config

image

image

image

from terraform-provider-opnsense.

browningluke avatar browningluke commented on June 16, 2024

Hey @chrisreeves-, that error actually looks like it's from a quirk of how the os-firewall plugin API works. It considers the protocol attribute case sensitive.

In that code example you showed, try set protocol = "TCP".

from terraform-provider-opnsense.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.