-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathsecgroup_rsyslog.tf
More file actions
28 lines (25 loc) · 876 Bytes
/
secgroup_rsyslog.tf
File metadata and controls
28 lines (25 loc) · 876 Bytes
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
resource "openstack_networking_secgroup_v2" "rsyslog" {
name = "rsyslog"
description = "[tf] Rsyslog"
delete_default_rules = "true"
}
# Allow ingress 514 TCP in 10.5.67.0/24
resource "openstack_networking_secgroup_rule_v2" "rsyslog-tcp" {
direction = "ingress"
ethertype = "IPv4"
security_group_id = openstack_networking_secgroup_v2.rsyslog.id
protocol = "tcp"
port_range_min = 514
port_range_max = 514
remote_ip_prefix = "10.5.67.0/24"
}
# Allow ingress 514 TCP in 10.5.68.0/24 (ZFS)
resource "openstack_networking_secgroup_rule_v2" "rsyslog-zfs" {
direction = "ingress"
ethertype = "IPv4"
security_group_id = openstack_networking_secgroup_v2.rsyslog.id
protocol = "tcp"
port_range_min = 514
port_range_max = 514
remote_ip_prefix = "10.5.68.0/24"
}