Skip to content

Instantly share code, notes, and snippets.

@rtrentin73
Created August 23, 2022 12:59
Show Gist options
  • Save rtrentin73/6ff22cb5bcb8cea257a4010fa6234598 to your computer and use it in GitHub Desktop.
Save rtrentin73/6ff22cb5bcb8cea257a4010fa6234598 to your computer and use it in GitHub Desktop.
resource "aviatrix_gateway_dnat" "ingress-gw-east-dnat" {
gw_name = "ingress-gw-east"
dnat_policy {
dst_cidr = "${azurerm_public_ip.ingress-east-us-lb-pip.ip_address}/32"
dst_port = "80"
protocol = "tcp"
interface = "eth0"
connection = "None"
mark = "65535"
dnat_ips = azurerm_lb.east-us-lb.private_ip_address
dnat_port = "80"
apply_route_entry = true
}
sync_to_ha = false
}
resource "aviatrix_gateway_dnat" "ingress-gw-central-dnat" {
gw_name = "ingress-gw-central"
dnat_policy {
dst_cidr = "${azurerm_public_ip.ingress-central-us-lb-pip.ip_address}/32"
dst_port = "80"
protocol = "tcp"
interface = "eth0"
connection = "None"
mark = "65537"
dnat_ips = azurerm_lb.central-us-lb.private_ip_address
dnat_port = "80"
apply_route_entry = true
}
sync_to_ha = false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment