By tinkerdagon
I just provisioned an openvpn access server on a droplet via the marketplace. (Version 2.8.5 OS Ubuntu 18.04)
I assigned a floating IP to my droplet.
How do I tell openvpn to route all incoming and outgoing traffic via the floating ip?
I am able to ssh into my instance via the ip provided originally by DO as well as my floating IP.
However, I am able to access my admin interface via my original ip but not via my floating ip.
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!
Heya,
Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.
To route all incoming and outgoing traffic via the floating IP for your OpenVPN server, you would need to modify your server configuration files. Unfortunately, DigitalOcean’s floating IP is designed to remap automatically from one Droplet to another within the same datacenter, it might not work well with OpenVPN to route traffic.
However, to make your admin interface accessible via your floating IP, you might need to specify the IP address when setting up the OpenVPN to bind to a specific IP address. If you’ve installed OpenVPN Access Server from the DigitalOcean marketplace, the admin interface should be accessible on your floating IP, as well as any other IP addresses the access server is set to listen on.
Please, be aware that any changes misconfigured might break your OpenVPN setup, so proceed with caution and consider creating backups before doing any substantial changes. Here you can find a guide on how to setup OpenVPN.
For further clarification and assistance, you might need to refer to the OpenVPN official documentation or contact OpenVPN directly.
Please note, these are general suggestions and it could require an investigation to know the exact issue causing this behavior.
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.