Makes client vpn cidr range configurable
This commit is contained in:
@@ -110,7 +110,7 @@ resource "azurerm_virtual_network_gateway" "vnet_gateway" {
|
||||
}
|
||||
|
||||
vpn_client_configuration {
|
||||
address_space = ["172.16.1.0/24"]
|
||||
address_space = var.vpn_client_cidr
|
||||
vpn_client_protocols = ["OpenVPN"]
|
||||
}
|
||||
}
|
@@ -52,3 +52,9 @@ variable "service_endpoints" {
|
||||
description = "A map of the service endpoints and its mapping to subnets"
|
||||
|
||||
}
|
||||
|
||||
variable "vpn_client_cidr" {
|
||||
type = list
|
||||
description = "The CIDR range used for clients on the VPN"
|
||||
default = ["172.16.0.0/16"]
|
||||
}
|
||||
|
Reference in New Issue
Block a user