Explorar el Código

Grants a permissive egress rule to openvpn

To be tagged v1.0.9
Fred Damstra hace 4 años
padre
commit
ec0f6e5765
Se han modificado 1 ficheros con 11 adiciones y 0 borrados
  1. 11 0
      base/openvpn/main.tf

+ 11 - 0
base/openvpn/main.tf

@@ -204,6 +204,17 @@ resource "aws_security_group_rule" "openvpn-https-in" {
   security_group_id = aws_security_group.openvpn_security_group.id
 }
 
+resource "aws_security_group_rule" "openvpn-permissive-out" {
+  # We allow all outbound for openvpn
+  type              = "egress"
+  from_port         = -1
+  to_port           = -1
+  protocol          = "all"
+  cidr_blocks       = [ "10.0.0.0/8" ]
+  security_group_id = aws_security_group.openvpn_security_group.id
+}
+
+# We have specific egress rules, as well, but the list may be incomplete.
 resource "aws_security_group_rule" "openvpn-splunk-out" {
   type              = "egress"
   from_port         = 8000