2021-03-23 21:22:31 +00:00
|
|
|
resource "vultr_instance" "casey" {
|
|
|
|
plan = "" # On a plan unsupported by API
|
|
|
|
region = "lhr"
|
2020-02-22 22:13:44 +00:00
|
|
|
hostname = "casey"
|
|
|
|
firewall_group_id = vultr_firewall_group.casey.id
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_firewall_group" "casey" {
|
|
|
|
description = "casey"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_firewall_rule" "casey_ping" {
|
|
|
|
firewall_group_id = vultr_firewall_group.casey.id
|
|
|
|
protocol = "icmp"
|
2021-03-23 21:22:31 +00:00
|
|
|
ip_type = "v4"
|
|
|
|
subnet = "0.0.0.0"
|
|
|
|
subnet_size = 0
|
2020-02-22 22:13:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_firewall_rule" "casey_web" {
|
|
|
|
firewall_group_id = vultr_firewall_group.casey.id
|
|
|
|
protocol = "tcp"
|
2021-03-23 21:22:31 +00:00
|
|
|
port = 80
|
|
|
|
ip_type = "v4"
|
|
|
|
subnet = "0.0.0.0"
|
|
|
|
subnet_size = 0
|
2020-02-22 22:13:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_firewall_rule" "casey_web_secure" {
|
|
|
|
firewall_group_id = vultr_firewall_group.casey.id
|
|
|
|
protocol = "tcp"
|
2021-03-23 21:22:31 +00:00
|
|
|
port = 443
|
|
|
|
ip_type = "v4"
|
|
|
|
subnet = "0.0.0.0"
|
|
|
|
subnet_size = 0
|
2020-02-22 22:13:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_firewall_rule" "casey_wireguard" {
|
|
|
|
firewall_group_id = vultr_firewall_group.casey.id
|
|
|
|
protocol = "udp"
|
2021-03-23 21:22:31 +00:00
|
|
|
port = 51820
|
|
|
|
ip_type = "v4"
|
|
|
|
subnet = "0.0.0.0"
|
|
|
|
subnet_size = 0
|
2020-02-22 22:13:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_firewall_rule" "casey_quassel" {
|
|
|
|
firewall_group_id = vultr_firewall_group.casey.id
|
|
|
|
protocol = "tcp"
|
2021-03-23 21:22:31 +00:00
|
|
|
port = 4242
|
|
|
|
ip_type = "v4"
|
|
|
|
subnet = "0.0.0.0"
|
|
|
|
subnet_size = 0
|
2020-02-22 22:13:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_firewall_rule" "casey_matrix" {
|
|
|
|
firewall_group_id = vultr_firewall_group.casey.id
|
|
|
|
protocol = "tcp"
|
2021-03-23 21:22:31 +00:00
|
|
|
port = 8448
|
|
|
|
ip_type = "v4"
|
|
|
|
subnet = "0.0.0.0"
|
|
|
|
subnet_size = 0
|
2020-02-21 18:44:25 +00:00
|
|
|
}
|
2020-04-07 18:43:40 +01:00
|
|
|
|
|
|
|
resource "vultr_firewall_rule" "casey_mc" {
|
|
|
|
firewall_group_id = vultr_firewall_group.casey.id
|
|
|
|
protocol = "tcp"
|
2021-03-23 21:22:31 +00:00
|
|
|
port = 25566
|
|
|
|
ip_type = "v4"
|
|
|
|
subnet = "0.0.0.0"
|
|
|
|
subnet_size = 0
|
2020-04-07 18:43:40 +01:00
|
|
|
}
|
2021-01-25 21:53:04 +00:00
|
|
|
|
|
|
|
resource "vultr_firewall_rule" "casey_nebula" {
|
|
|
|
firewall_group_id = vultr_firewall_group.casey.id
|
2021-01-30 18:16:10 +00:00
|
|
|
protocol = "udp"
|
2021-03-23 21:22:31 +00:00
|
|
|
port = 6328
|
|
|
|
ip_type = "v4"
|
|
|
|
subnet = "0.0.0.0"
|
|
|
|
subnet_size = 0
|
2021-01-25 21:53:04 +00:00
|
|
|
}
|