I’m setting up Pritunl in AWS and attempting to get the cloud advertising working. We hold an enterprise licence for Pritunl, if that matters.
I’ve setup the Instance Profile with the AmazonRoute53FullAccess and AmazonVPCFullAccess managed policies and attached it to two EC2s running Pritunl. The VPN works and doesn’t throw errors when the advertising is disabled.
On both Pritunl hosts I’ve disabled the source/destination check on their respective network interfaces. UDP port 4789 traffic is allowed between the Pritunl hosts.
VPC: 10.0.0.0/16 (in US East (Ohio))
Virtual Network: 10.99.0.0/16
I have the Cloud Provider setting set to “AWS” and I have “role” set for both “US East (Ohio) Access Key” and “US East (Ohio) Secret Key”. “Auto Route 53 Region” is disabled.
Getting the following error:
[evening-forest-5849][2024-01-24 21:15:25,340][ERROR] Failed to add vpc route
Traceback (most recent call last):
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/server/instance.py", line 1253, in reserve_route_advertisement
utils.add_vpc_route(network)
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/utils/aws.py", line 65, in add_vpc_route
mdata = get_metadata()
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/utils/aws.py", line 35, in get_metadata
instance_id = metadata['instance-id']
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/boto/utils.py", line 275, in __getitem__
return super(LazyLoadMetadata, self).__getitem__(key)
KeyError: 'instance-id'
server_id = "REDACTED"
instance_id = "REDACTED"
vpc_region = null
vpc_id = null
network = "10.99.0.0/16"
Haven’t found any more details in the log files.