Add casey firewall config

This commit is contained in:
Jake Howard 2020-02-22 22:13:44 +00:00
parent 23d41a90b6
commit a80cc472cc
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -3,4 +3,50 @@ resource "vultr_server" "casey" {
region_id = 8
os_id = 159
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"
network = "0.0.0.0/0"
}
resource "vultr_firewall_rule" "casey_web" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 80
network = "0.0.0.0/0"
}
resource "vultr_firewall_rule" "casey_web_secure" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 443
network = "0.0.0.0/0"
}
resource "vultr_firewall_rule" "casey_wireguard" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "udp"
from_port = 51820
network = "0.0.0.0/0"
}
resource "vultr_firewall_rule" "casey_quassel" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 4242
network = "0.0.0.0/0"
}
resource "vultr_firewall_rule" "casey_matrix" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 8448
network = "0.0.0.0/0"
}