Giter Club home page Giter Club logo

Comments (1)

b0bu avatar b0bu commented on June 12, 2024

I had a look at this today and as far as I can tell adding enableInternetSecurity is the easy bit. I have a need for both secure internet and secure private traffic for each vhub fw I deploy. Enabling internet security doesn't do anything unless the 0/0 route in the vhub defaultRouteTable is pointing to the firewall. I propose adding something like the following to the vnet configuration

    vwan_security_configuration = object({
        secure_internet_traffic = optional(bool, false)
        secure_private_traffic  = optional(bool, false)
        next_hop                = optional(string, "")
    })

And having the defaultRouteTable updated based on the presence of security_configuration. I forked this today and have it working. #151. There may be another part of this code base that I'm unfamiliar with that allows you to manipulate the route table.

      vwan_security_configuration = {
        secure_internet_traffic = false
        secure_private_traffic  = false
        next_hop = "/subscriptions/000/resourceGroups/Connectivity/providers/Microsoft.Network/azureFirewalls/fw-uksouth"
      }

Due to the different states that can be toggled I've just added basic "and/and not" logic to handle that i.e. secure_internet_traffic = true results in a public_traffic route secure_private_traffic results in a private_traffic route and both together result in an all_traffic route

from terraform-azurerm-lz-vending.

Related Issues (20)

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.