2022-01-08 22:12:28 +00:00
|
|
|
resource "linode_instance" "decker" {
|
|
|
|
label = "decker"
|
|
|
|
image = "linode/arch"
|
|
|
|
region = "eu-central"
|
|
|
|
type = "g6-nanode-1"
|
|
|
|
private_ip = true
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "linode_firewall" "decker" {
|
|
|
|
label = "decker"
|
|
|
|
linodes = [linode_instance.decker.id]
|
|
|
|
outbound_policy = "ACCEPT"
|
|
|
|
inbound_policy = "DROP"
|
|
|
|
|
|
|
|
inbound {
|
|
|
|
label = "allow-ping"
|
|
|
|
action = "ACCEPT"
|
|
|
|
protocol = "ICMP"
|
|
|
|
ipv4 = ["0.0.0.0/0"]
|
|
|
|
ipv6 = ["::/0"]
|
|
|
|
}
|
2022-01-11 09:08:23 +00:00
|
|
|
|
|
|
|
inbound {
|
|
|
|
label = "allow-inbound-https"
|
|
|
|
action = "ACCEPT"
|
|
|
|
protocol = "TCP"
|
|
|
|
ports = "443"
|
|
|
|
ipv4 = ["0.0.0.0/0"]
|
|
|
|
ipv6 = ["::/0"]
|
|
|
|
}
|
|
|
|
|
|
|
|
inbound {
|
|
|
|
label = "allow-inbound-http"
|
|
|
|
action = "ACCEPT"
|
|
|
|
protocol = "TCP"
|
|
|
|
ports = "80"
|
|
|
|
ipv4 = ["0.0.0.0/0"]
|
|
|
|
ipv6 = ["::/0"]
|
|
|
|
}
|
2022-01-08 22:12:28 +00:00
|
|
|
}
|
2022-01-19 08:29:56 +00:00
|
|
|
|
|
|
|
resource "linode_rdns" "decker_reverse_ipv4" {
|
|
|
|
address = linode_instance.decker.ip_address
|
|
|
|
rdns = "decker.sys.theorangeone.net"
|
|
|
|
}
|