You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
When using the template linux-bastion-entrypoint-existing-vpc.template.yaml and deploying into a VPC that has IPv6 enabled. The reason is AWS DNS servers resolve s3.{region}.amazonaws.com and cloudformation.{region}.amazonaws.com to IPv6 address that are not even running a HTTPS server on the address.
[root@ip-10-1-1-124 systemd]# host cloudformation.us-east-1.amazonaws.com
cloudformation.us-east-1.amazonaws.com has address 54.239.29.24
cloudformation.us-east-1.amazonaws.com has IPv6 address 64:ff9b::36ef:1cf7
Cloudformation resolving to only an IPv4 address
[root@ip-10-1-1-124 systemd]# host cloudformation.us-east-1.amazonaws.com 1.1.1.1
Using domain server:
Name: 1.1.1.1
Address: 1.1.1.1#53
Aliases:
cloudformation.us-east-1.amazonaws.com has address 54.239.29.24
S3 resolving to an IPv6 address
[root@ip-10-1-1-124 systemd]# host s3.us-east-1.amazonaws.com
s3.us-east-1.amazonaws.com has address 54.231.235.152
s3.us-east-1.amazonaws.com has address 52.216.36.88
s3.us-east-1.amazonaws.com has address 52.217.82.246
s3.us-east-1.amazonaws.com has address 54.231.193.8
s3.us-east-1.amazonaws.com has address 52.217.74.14
s3.us-east-1.amazonaws.com has address 54.231.171.224
s3.us-east-1.amazonaws.com has address 52.217.86.94
s3.us-east-1.amazonaws.com has address 52.217.230.88
s3.us-east-1.amazonaws.com has IPv6 address 64:ff9b::36e7:ac60
s3.us-east-1.amazonaws.com has IPv6 address 64:ff9b::34d9:a5f0
s3.us-east-1.amazonaws.com has IPv6 address 64:ff9b::36e7:c400
s3.us-east-1.amazonaws.com has IPv6 address 64:ff9b::34d8:fb66
s3.us-east-1.amazonaws.com has IPv6 address 64:ff9b::36e7:e748
s3.us-east-1.amazonaws.com has IPv6 address 64:ff9b::34d8:24e0
s3.us-east-1.amazonaws.com has IPv6 address 64:ff9b::34d8:1bbe
s3.us-east-1.amazonaws.com has IPv6 address 64:ff9b::34d8:2bd0
S3 resolving to only IPv4 when using 1.1.1.1
[root@ip-10-1-1-124 systemd]# host s3.us-east-1.amazonaws.com 1.1.1.1
Using domain server:
Name: 1.1.1.1
Address: 1.1.1.1#53
Aliases:
s3.us-east-1.amazonaws.com has address 52.216.106.5
s3.us-east-1.amazonaws.com has address 54.231.167.96
s3.us-east-1.amazonaws.com has address 52.217.132.160
s3.us-east-1.amazonaws.com has address 52.217.123.128
s3.us-east-1.amazonaws.com has address 52.217.40.22
s3.us-east-1.amazonaws.com has address 52.217.199.160
s3.us-east-1.amazonaws.com has address 52.217.228.72
s3.us-east-1.amazonaws.com has address 52.217.226.88
[root@ip-10-1-1-124 systemd]# curl -6 -v https://cloudformation.us-east-1.amazonaws.com
* Trying [64:ff9b::36ef:1cf7]:443...
* connect to 64:ff9b::36ef:1cf7 port 443 failed: Connection timed out
* Failed to connect to cloudformation.us-east-1.amazonaws.com port 443 after 129400 ms: Couldn't connect to server
* Closing connection 0
curl: (28) Failed to connect to cloudformation.us-east-1.amazonaws.com port 443 after 129400 ms: Couldn't connect to server
Security Group and Network ACL is allowing all IPv4 and IPv6 traffic.
My only solution to get the Bastion box to trigger success was to overwrite the resolv.conf with nameserver 1.1.1.1 and then execute systemctl restart network my guess this really be related to Cloudformation not supporting IPv6 and AWS resolving, AWS services to addresses that don't have server running on IPv6.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using the template linux-bastion-entrypoint-existing-vpc.template.yaml and deploying into a VPC that has IPv6 enabled. The reason is AWS DNS servers resolve s3.{region}.amazonaws.com and cloudformation.{region}.amazonaws.com to IPv6 address that are not even running a HTTPS server on the address.
Contents of /etc/resolv.conf
Cloudformation resolving to an IPv6 address
Cloudformation resolving to only an IPv4 address
S3 resolving to an IPv6 address
S3 resolving to only IPv4 when using 1.1.1.1
curl -6 -v https://cloudformation.us-east-1.amazonaws.com
outputcurl -4 -v https://cloudformation.us-east-1.amazonaws.com
outputSecurity Group and Network ACL is allowing all IPv4 and IPv6 traffic.
My only solution to get the Bastion box to trigger success was to overwrite the resolv.conf with
nameserver 1.1.1.1
and then executesystemctl restart network
my guess this really be related to Cloudformation not supporting IPv6 and AWS resolving, AWS services to addresses that don't have server running on IPv6.The text was updated successfully, but these errors were encountered: