2024-10-30 11:25:44 +00:00
|
|
|
# Security groups lb-frontend
|
|
|
|
resource "openstack_networking_secgroup_v2" "lb-dco" {
|
|
|
|
name = "lb-frontend"
|
|
|
|
description = "Ingress lb traffic to allow."
|
|
|
|
provider=openstack.dco
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "openstack_networking_secgroup_rule_v2" "lb_ingress_rule_v4_dco" {
|
|
|
|
direction = "ingress"
|
|
|
|
ethertype = "IPv4"
|
|
|
|
protocol = "tcp"
|
|
|
|
port_range_min = "8443"
|
|
|
|
port_range_max = "8443"
|
|
|
|
provider = openstack.dco
|
2024-11-05 21:38:41 +00:00
|
|
|
remote_ip_prefix = "87.251.31.118/32"
|
2024-10-30 11:25:44 +00:00
|
|
|
security_group_id = openstack_networking_secgroup_v2.lb-dco.id
|
|
|
|
}
|
|
|
|
|
2024-10-30 22:56:25 +00:00
|
|
|
resource "openstack_networking_secgroup_rule_v2" "lb_ingress_rule2_v4_dco" {
|
|
|
|
direction = "ingress"
|
|
|
|
ethertype = "IPv4"
|
|
|
|
protocol = "tcp"
|
|
|
|
port_range_min = "16443"
|
|
|
|
port_range_max = "16443"
|
|
|
|
provider = openstack.dco
|
2024-11-05 21:38:41 +00:00
|
|
|
remote_ip_prefix = "87.251.31.118/32"
|
|
|
|
security_group_id = openstack_networking_secgroup_v2.lb-dco.id
|
|
|
|
}
|
|
|
|
|
|
|
|
# From mgmt1
|
|
|
|
|
|
|
|
resource "openstack_networking_secgroup_rule_v2" "lb_ingress_rule3_v4_dco" {
|
|
|
|
direction = "ingress"
|
|
|
|
ethertype = "IPv4"
|
|
|
|
protocol = "tcp"
|
|
|
|
port_range_min = "16443"
|
|
|
|
port_range_max = "16443"
|
|
|
|
provider = openstack.dco
|
|
|
|
remote_ip_prefix = "89.47.191.66/32"
|
|
|
|
security_group_id = openstack_networking_secgroup_v2.lb-dco.id
|
|
|
|
}
|
|
|
|
|
2024-11-06 06:47:20 +00:00
|
|
|
|
|
|
|
|
2024-11-05 21:38:41 +00:00
|
|
|
resource "openstack_networking_secgroup_rule_v2" "lb_ingress_rule4_v4_dco" {
|
|
|
|
direction = "ingress"
|
|
|
|
ethertype = "IPv4"
|
|
|
|
protocol = "tcp"
|
|
|
|
port_range_min = "80"
|
|
|
|
port_range_max = "80"
|
|
|
|
provider = openstack.dco
|
|
|
|
remote_ip_prefix = "89.47.191.66/32"
|
|
|
|
security_group_id = openstack_networking_secgroup_v2.lb-dco.id
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "openstack_networking_secgroup_rule_v2" "lb_ingress_rule5_v4_dco" {
|
|
|
|
direction = "ingress"
|
|
|
|
ethertype = "IPv4"
|
|
|
|
protocol = "tcp"
|
|
|
|
port_range_min = "443"
|
|
|
|
port_range_max = "443"
|
|
|
|
provider = openstack.dco
|
|
|
|
remote_ip_prefix = "89.47.191.66/32"
|
2024-10-30 22:56:25 +00:00
|
|
|
security_group_id = openstack_networking_secgroup_v2.lb-dco.id
|
|
|
|
}
|
2024-11-06 06:47:20 +00:00
|
|
|
|
|
|
|
resource "openstack_networking_secgroup_rule_v2" "lb_ingress_rule6_v4_dco" {
|
|
|
|
direction = "ingress"
|
|
|
|
ethertype = "IPv4"
|
|
|
|
protocol = "tcp"
|
|
|
|
port_range_min = "8443"
|
|
|
|
port_range_max = "8443"
|
|
|
|
provider = openstack.dco
|
|
|
|
remote_ip_prefix = "89.47.191.66/32"
|
|
|
|
security_group_id = openstack_networking_secgroup_v2.lb-dco.id
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "openstack_networking_secgroup_rule_v2" "lb_ingress_rule7_v4_dco" {
|
|
|
|
direction = "ingress"
|
|
|
|
ethertype = "IPv4"
|
|
|
|
protocol = "tcp"
|
|
|
|
port_range_min = "8080"
|
|
|
|
port_range_max = "8080"
|
|
|
|
provider = openstack.dco
|
|
|
|
remote_ip_prefix = "89.47.191.66/32"
|
|
|
|
security_group_id = openstack_networking_secgroup_v2.lb-dco.id
|
|
|
|
}
|
2024-11-06 14:06:05 +00:00
|
|
|
|
|
|
|
resource "openstack_networking_secgroup_rule_v2" "lb_ingress_rule8_v4_dco" {
|
|
|
|
direction = "ingress"
|
|
|
|
ethertype = "IPv4"
|
|
|
|
protocol = "tcp"
|
|
|
|
port_range_min = "16443"
|
|
|
|
port_range_max = "16443"
|
|
|
|
provider = openstack.dco
|
|
|
|
remote_ip_prefix = "89.47.184.88/32"
|
|
|
|
security_group_id = openstack_networking_secgroup_v2.lb-dco.id
|
|
|
|
}
|
2024-11-07 11:38:58 +00:00
|
|
|
|
|
|
|
resource "openstack_networking_secgroup_rule_v2" "lb_ingress_rule9_v4_dco" {
|
|
|
|
direction = "ingress"
|
|
|
|
ethertype = "IPv4"
|
|
|
|
protocol = "tcp"
|
|
|
|
port_range_min = "16443"
|
|
|
|
port_range_max = "16443"
|
|
|
|
provider = openstack.dco
|
|
|
|
remote_ip_prefix = "130.242.121.23/32"
|
|
|
|
security_group_id = openstack_networking_secgroup_v2.lb-dco.id
|
|
|
|
}
|