Skip to content

Instantly share code, notes, and snippets.

@lekansogunle
Created August 30, 2020 20:11
Show Gist options
  • Save lekansogunle/c775ba62a8a2a0434150bc2f9f2e4342 to your computer and use it in GitHub Desktop.
Save lekansogunle/c775ba62a8a2a0434150bc2f9f2e4342 to your computer and use it in GitHub Desktop.
resource "aws_security_group" "instance" {
name = "openvpn-default"
description = "OpenVPN security group"
ingress {
from_port = 22
to_port = 22
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
from_port = 443
to_port = 443
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
from_port = 943
to_port = 943
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
from_port = 945
to_port = 945
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
ingress {
from_port = 1194
to_port = 1194
protocol = "udp"
cidr_blocks = ["0.0.0.0/0"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment