Add casey firewall config
This commit is contained in:
parent
23d41a90b6
commit
a80cc472cc
1 changed files with 50 additions and 4 deletions
|
@ -1,6 +1,52 @@
|
|||
resource "vultr_server" "casey" {
|
||||
plan_id = 200
|
||||
region_id = 8
|
||||
os_id = 159
|
||||
hostname = "casey"
|
||||
plan_id = 200
|
||||
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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue