Created
August 23, 2022 12:59
-
-
Save rtrentin73/6ff22cb5bcb8cea257a4010fa6234598 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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