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
<#1215875025819930665>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
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 domainhey @kerxkerby, any success ?
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.glad to know it worked out!
@Phorcys closed the thread.