Question:
I have configured a Jenkins server within a private subnet of my AWS VPC, accessible through a Pritunl VPN jump server. To enable internet access for the Jenkins server, I have set up a NAT Gateway. Currently, I can access the Jenkins server by connecting to the VPN and using its private IP address along with port 8080 (e.g., http://<privateIp>:8080
).
However, I would like to access the Jenkins server using a custom domain name instead of the IP address and port. To achieve this, I have created a private hosted zone in Route 53 and I'm trying to map the domain name to the Jenkins server. I'm encountering some difficulties, and I'm looking for guidance on the steps and configurations required to make this work.
Here are the steps I've taken so far:
Set up a Jenkins server in a private subnet.
Configured a Pritunl VPN jump server to access the private resources.
Created a NAT Gateway to allow internet access for the Jenkins server.
Created a private hosted zone in Route 53 and added The A record for the my
jenkins.mydomain.com
and it is pointing to the private IP when I did thenslookup jenkins.mydomain.com
for confirmation.
I'm now unsure about the specific configurations needed to associate the custom domain with the Jenkins server's URL. What are the expectations for achieving this? Are there additional configurations required within Jenkins, Route 53, or my VPC to make this work seamlessly?
I'm seeking a solution that allows me to access the Jenkins server using a domain name like http://jenkins.mydomain.com
while connected to the Pritunl VPN server. I believe this involves configuring the DNS settings within the Route 53 private hosted zone. However, I'm uncertain about the specific steps required to achieve this setup while keeping the Jenkins server private and not exposing it to the public internet.
I'm hopeful that someone with experience in networking, VPN setups, and Amazon Route 53 could provide me with clear steps or guidance on how to properly configure the DNS settings in Route 53. Additionally, any insights into potential adjustments needed on the Jenkins server itself or within the Pritunl VPN configuration would be greatly appreciated.
Thank you in advance for any assistance or advice you can provide!