-
Notifications
You must be signed in to change notification settings - Fork 0
/
app_rule_collections.tf
73 lines (69 loc) · 1.91 KB
/
app_rule_collections.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
61
62
63
64
65
66
67
68
69
70
71
72
73
locals {
application_rule_collections = [
{
name = "app_rule_allow1"
priority = "1500"
action = "Allow"
rules = [
{
name = "app_rule_allow_ifconfig.me"
protocols = [
{
protocolType = "Http"
port = "80"
},
{
protocolType = "Https"
port = "443"
}
]
source_addresses = []
destination_fqdns = ["ifconfig.me"]
destination_fqdn_tags = []
source_ip_groups = [azurerm_ip_group.MainUSVnetIPSpace.id]
}
]
}
]
network_rule_collections = [
{
name = "Basic-RuleCollection"
priority = 1000
action = "Allow"
rules = [
{
name = "Ping"
protocols = ["ICMP"]
source_ip_groups = [azurerm_ip_group.MainUSVnetIPSpace.id]
destination_ip_groups = [azurerm_ip_group.MainUSVnetIPSpace.id]
destination_ports = ["*"]
},
{
name = "RDP"
protocols = ["TCP"]
source_ip_groups = [azurerm_ip_group.MainUSVnetIPSpace.id]
destination_ip_groups = [azurerm_ip_group.MainUSVnetIPSpace.id]
destination_ports = ["3389"]
}
]
}
]
nat_rule_collections = [
{
name = "nat_rule_collection1"
priority = "500"
action = "Dnat"
rules = [
{
name = "nat_rule_sshToVMs"
protocols = ["TCP", "UDP"]
source_ip_groups = [azurerm_ip_group.HomeBase.id]
destination_address = azurerm_public_ip.azurefirewall-pip.ip_address
destination_ports = ["22"]
translated_address = "10.3.0.4"
translated_port = "22"
}
]
}
]
}