0
0
llucycodes42
This code created a rule that allows traffic from the IP range 10.0.0.0/8 and TCP ports 80 and 1000-2000 to flow through the firewall.
Shortcut: tf_cloudstack_egress_firewall
resource "cloudstack_egress_firewall" "${myResourceName}" {
network_id = "6eb22f91-7454-4107-89f4-36afcdf33021"
rule {
cidr_list = ["10.0.0.0/8"]
protocol = "tcp"
ports = ["80", "1000-2000"]
}
}