Code Monkey home page Code Monkey logo

f5-terraform-xc-allow-lists's Introduction

f5-terraform-xc-allow-lists

This is a module to make it easier to create allow lists for F5 Distributed Cloud IPs and domains.


References


Usage Example

module "xc_allow_lists" {
  source = "github.com/rafaelsampaio/f5-terraform-xc-allow-lists"
}

resource "azurerm_network_security_group" "xc" {
  name                = "allow-xc"
  location            = var.location
  resource_group_name = var.rg
  tags                = var.labels

  dynamic "security_rule" {
    for_each = { for port in var.ports : port => port }
    content {
      name                       = "xc-tcp-${security_rule.value}"
      priority                   = security_rule.key + 101
      direction                  = "Inbound"
      access                     = "Allow"
      protocol                   = "Tcp"
      destination_port_range     = security_rule.value
      source_address_prefixes    = module.xc_allow_lists.all_ranges
      source_port_range          = "*"
      destination_address_prefix = data.azurerm_subnet.external.address_prefixes[0]
    }
  }
}

Inputs

None

Outputs

Name Description
range_ipv4_tcp Configure your network firewall to allow connections from or to the IP address ranges specified
range_ipv4_tcp_ports Configure your network firewall to allow connections from or to the IP address ranges specified
range_ipv4_udp Configure your network firewall to allow connections from or to the IP address ranges specified
range_ipv4_udp_ports Configure your network firewall to allow connections from or to the IP address ranges specified
dns_zone_transfer Allow the IP address ranges specified for successful zone transfers
dns_zone_transfer_with_mask Allow the IP address ranges specified for successful zone transfers
global_log_receivers Allow the following IP ranges for successful functioning of the global log receiver
dnslb_health_check
dnslb_health_check_with_mask
container_registries Allow the IP address ranges specified to enable access to the various container registries
domains_http Add the domains specified to your allowlist to enable firewall or proxy to allow connections from or to the domains
domains_dns Add the domains specified to your allowlist to enable firewall or proxy to allow connections from or to the domains
all_ranges All but container registries
all_ports All TCP and UDP ports

f5-terraform-xc-allow-lists's People

Contributors

rafaelsampaio avatar

Watchers

 avatar

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.