-
Notifications
You must be signed in to change notification settings - Fork 25
/
secgroup_public-ftp.tf
60 lines (53 loc) · 1.92 KB
/
secgroup_public-ftp.tf
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
55
56
57
58
59
60
resource "openstack_networking_secgroup_v2" "public-ftp" {
name = "public-ftp"
description = "[tf] Allow FTP connections from anywhere"
delete_default_rules = "true"
}
resource "openstack_networking_secgroup_rule_v2" "public-ftp-egress-ipv4" {
direction = "egress"
ethertype = "IPv4"
protocol = "tcp"
port_range_min = "20"
port_range_max = "20"
security_group_id = openstack_networking_secgroup_v2.public-ftp.id
}
resource "openstack_networking_secgroup_rule_v2" "public-ftp-egress-ipv6" {
direction = "egress"
ethertype = "IPv6"
protocol = "tcp"
port_range_min = "20"
port_range_max = "20"
security_group_id = openstack_networking_secgroup_v2.public-ftp.id
}
resource "openstack_networking_secgroup_rule_v2" "public-ftp-ingress-ipv4" {
direction = "ingress"
ethertype = "IPv4"
protocol = "tcp"
port_range_min = "20"
port_range_max = "21"
security_group_id = openstack_networking_secgroup_v2.public-ftp.id
}
resource "openstack_networking_secgroup_rule_v2" "public-ftp-ingress-ip4" {
direction = "ingress"
ethertype = "IPv6"
protocol = "tcp"
port_range_min = "20"
port_range_max = "21"
security_group_id = openstack_networking_secgroup_v2.public-ftp.id
}
resource "openstack_networking_secgroup_rule_v2" "public-ftp-data-ports-ipv4" {
direction = "ingress"
ethertype = "IPv4"
protocol = "tcp"
port_range_min = "49152"
port_range_max = "65534"
security_group_id = openstack_networking_secgroup_v2.public-ftp.id
}
resource "openstack_networking_secgroup_rule_v2" "public-ftp-data-ports-ipv6" {
direction = "ingress"
ethertype = "IPv6"
protocol = "tcp"
port_range_min = "49152"
port_range_max = "65534"
security_group_id = openstack_networking_secgroup_v2.public-ftp.id
}