Accessing Self-Hosted Coder Server Through ZeroTier VPN

I have set up a self-hosted Coder server on our internal workstation server machines. Currently, we can access the workspaces through the tunnel https://<GUID>.pit-1.try.coder.app/. However, I would also like to access the Coder server through our ZeroTier VPN. ZeroTier is an encrypted, layer-2-stretch multipoint VPN with integrated firewalling capability. I believe it should be possible to access our self-hosted Coder server using the IP address provided by our ZeroTier network. However, after reading the Coder documentation (https://coder.com/docs/v2/latest/admin/configure), I'm unable to find the necessary information to configure this setup. Has anyone successfully set up a self-hosted Coder server to be accessible through a VPN? If so, could you please provide guidance on how to achieve this configuration? Thank you in advance for your help!
6 Replies
Codercord
Codercord8mo ago
<#1215875025819930665>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Atif
Atif8mo ago
You need to set the CODER_ACCESS_URL to your ZeroTier VPN IP address. Let me know if you can make it work with this If you have a local DNS that's even better and you can set CODER_ACCESS_URL to the internet domain that points to the private network IP. Make sure all your workspaces have that DNS configured to be able to resolve the internall domain
Phorcys
Phorcys7mo ago
hey @kerxkerby, any success ?
kerxkerby
kerxkerby7mo ago
Yes, I setup the access URL: export CODER_HTTP_ADDRESS=<zerotier-ip>:<port> with the IP address provider by ZeroTier keeping the port to 3000 , it's now accessible to remote developers in the same ZT network.
Phorcys
Phorcys7mo ago
glad to know it worked out!
Codercord
Codercord7mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server