Repository navigation
Expand file tree
/
Copy pathnetwork-security-group.tf
More file actions
71 lines (66 loc) · 2.59 KB
/
Copy pathnetwork-security-group.tf
File metadata and controls
71 lines (66 loc) · 2.59 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
resource "oci_core_network_security_group" "obico_network_security_group" {
compartment_id = "${oci_identity_compartment.obico_compartment.id}"
vcn_id = "${oci_core_vcn.obicoVCN.id}"
display_name = "Obico Required Ports"
}
resource "oci_core_network_security_group_security_rule" "obico_network_security_group_security_rule_3334" {
network_security_group_id = "${oci_core_network_security_group.obico_network_security_group.id}"
direction = "INGRESS"
protocol = "6"
description = "Port 3334 used for Web Browser communication"
source = "${var.source_ip}"
source_type = "CIDR_BLOCK"
tcp_options {
destination_port_range {
max = "3334"
min = "3334"
}
}
}
resource "oci_core_network_security_group_security_rule" "obico_network_security_group_security_rule_webrtc" {
# https://www.obico.io/docs/server-guides/faqs/#why-doesnt-the-premium-streaming-work
network_security_group_id = "${oci_core_network_security_group.obico_network_security_group.id}"
direction = "INGRESS"
protocol = "17"
description = "Port used for WebRTC protocol"
source = "${var.source_ip}"
source_type = "CIDR_BLOCK"
udp_options {
destination_port_range {
max = "24999"
min = "20000"
}
}
}
resource "oci_core_network_security_group_security_rule" "obico_network_security_group_security_rule_stun" {
# https://www.obico.io/docs/server-guides/faqs/#why-doesnt-the-premium-streaming-work
# https://blog.addpipe.com/troubleshooting-webrtc-connection-issues/
network_security_group_id = "${oci_core_network_security_group.obico_network_security_group.id}"
direction = "INGRESS"
protocol = "17"
description = "Port used for STUN protocol"
source = "${var.source_ip}"
source_type = "CIDR_BLOCK"
udp_options {
destination_port_range {
max = "3478"
min = "3478"
}
}
}
resource "oci_core_network_security_group_security_rule" "obico_network_security_group_security_rule_stun_tls" {
# https://www.obico.io/docs/server-guides/faqs/#why-doesnt-the-premium-streaming-work
# https://blog.addpipe.com/troubleshooting-webrtc-connection-issues/
network_security_group_id = "${oci_core_network_security_group.obico_network_security_group.id}"
direction = "INGRESS"
protocol = "17"
description = "Port used for STUN TLS protocol"
source = "${var.source_ip}"
source_type = "CIDR_BLOCK"
udp_options {
destination_port_range {
max = "5349"
min = "5349"
}
}
}