-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsecurity_groups_proxy.tf
More file actions
54 lines (48 loc) · 1.87 KB
/
Copy pathsecurity_groups_proxy.tf
File metadata and controls
54 lines (48 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
resource "openstack_networking_secgroup_v2" "proxy" {
name = "base-proxy-sg"
description = "Security Group for Proxy Jump server"
}
resource "openstack_networking_secgroup_rule_v2" "proxy_ssh" {
direction = "ingress"
ethertype = "IPv4"
protocol = "tcp"
port_range_min = 22
port_range_max = 22
remote_ip_prefix = "0.0.0.0/0"
security_group_id = openstack_networking_secgroup_v2.proxy.id
}
resource "openstack_networking_secgroup_rule_v2" "proxy_icmp" {
direction = "ingress"
ethertype = "IPv4"
protocol = "icmp"
remote_ip_prefix = "0.0.0.0/0"
security_group_id = openstack_networking_secgroup_v2.proxy.id
}
resource "openstack_networking_secgroup_rule_v2" "remote_proxy_head_tcp" {
direction = "ingress"
ethertype = "IPv4"
protocol = "tcp"
remote_group_id = openstack_networking_secgroup_v2.head.id
security_group_id = openstack_networking_secgroup_v2.proxy.id
}
resource "openstack_networking_secgroup_rule_v2" "remote_proxy_head_udp" {
direction = "ingress"
ethertype = "IPv4"
protocol = "udp"
remote_group_id = openstack_networking_secgroup_v2.head.id
security_group_id = openstack_networking_secgroup_v2.proxy.id
}
resource "openstack_networking_secgroup_rule_v2" "remote_proxy_sandbox_access_tcp" {
direction = "ingress"
ethertype = "IPv4"
protocol = "tcp"
remote_group_id = openstack_networking_secgroup_v2.sandbox_access.id
security_group_id = openstack_networking_secgroup_v2.proxy.id
}
resource "openstack_networking_secgroup_rule_v2" "remote_proxy_sandbox_access_udp" {
direction = "ingress"
ethertype = "IPv4"
protocol = "udp"
remote_group_id = openstack_networking_secgroup_v2.sandbox_access.id
security_group_id = openstack_networking_secgroup_v2.proxy.id
}