From d5c31c0d326b6931e5d5df65990e8d84d1207e1a Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Wed, 6 Nov 2024 07:47:20 +0100 Subject: [PATCH] Add mgmt to lb rule for ingress ports --- IaC-test/securitygroups-lb.tf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/IaC-test/securitygroups-lb.tf b/IaC-test/securitygroups-lb.tf index 515514f..09bfd92 100644 --- a/IaC-test/securitygroups-lb.tf +++ b/IaC-test/securitygroups-lb.tf @@ -40,6 +40,8 @@ resource "openstack_networking_secgroup_rule_v2" "lb_ingress_rule3_v4_dco" { security_group_id = openstack_networking_secgroup_v2.lb-dco.id } + + resource "openstack_networking_secgroup_rule_v2" "lb_ingress_rule4_v4_dco" { direction = "ingress" ethertype = "IPv4" @@ -61,3 +63,25 @@ resource "openstack_networking_secgroup_rule_v2" "lb_ingress_rule5_v4_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_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 +}