|
@@ -35,9 +35,9 @@ resource "aws_ec2_client_vpn_endpoint" "vpn" {
|
|
|
cloudwatch_log_stream = aws_cloudwatch_log_stream.vpn.name
|
|
|
}
|
|
|
|
|
|
- # Possible required with zscalar?
|
|
|
- transport_protocol = "udp"
|
|
|
-
|
|
|
+ # Could not get UDP working on OSX
|
|
|
+ transport_protocol = "tcp"
|
|
|
+}
|
|
|
|
|
|
resource "aws_ec2_client_vpn_network_association" "vpn_subnets" {
|
|
|
count = local.redundancy_count
|
|
@@ -57,6 +57,7 @@ resource "aws_ec2_client_vpn_network_association" "vpn_subnets" {
|
|
|
resource "aws_ec2_client_vpn_route" "default" {
|
|
|
count = local.redundancy_count
|
|
|
client_vpn_endpoint_id = aws_ec2_client_vpn_endpoint.vpn.id
|
|
|
- destination_cidr_block = "10.0.0.0/8"
|
|
|
+ #destination_cidr_block = "10.0.0.0/8"
|
|
|
+ destination_cidr_block = "0.0.0.0/0"
|
|
|
target_vpc_subnet_id = aws_ec2_client_vpn_network_association.vpn_subnets[count.index].subnet_id
|
|
|
}
|