浏览代码

Merge pull request #111 from mdr-engineering/feature/ftd_na_OpenVPNBetterOutbound

Grants a permissive egress rule to openvpn
Frederick Damstra 4 年之前
父节点
当前提交
3ce505208e
共有 1 个文件被更改,包括 11 次插入0 次删除
  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