I want to run OpenVPN on my managed cluster. OpenVPN uses UDP, and this generates some problems. First of all, I can’t use the DO load balancer (it only relays TCP/HTTP). Secondly for some reason DO floating IP seems to not work with UDP either.
My first idea was simply to get a floating IP, point it to one of the nodes, and everything will be ok (maybe I could write up a small automation script to auto reassign that IP on the node-pool). I could connect to the droplet IP, but can not connect to the floating IP. But I could ssh to both.
Right now, I simply pointed my domain to one of the worker’s IP, and started a VPN server on all of the nodes, with binding the node’s port. It “works” now, but if the droplets are added/removed to the cluster and I get unlucky I need to reassign the domain to one of the new IPs. Also somehow my home router needs a manual reconnect after an IP change which is really unfortunate.
I’m open to any elegant solution :)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!