Route all OpenVPN connections through Floating IP
I used this tutorial to setup an OpenVPN server on a Debian droplet: https://github.com/Nyr/openvpn-install
I’ve also added a floating IP to the droplet, and now I’d like all connections to the VPN to appear as if they are coming from the floating IP, and NOT the primary IP of the server
When SSHing into the server, I managed to use the floating IP with a curl call:
curl --interface [ACNHOR-IP] https://api.ipify.org/
This worked - it gave the floating IP as response
How can it be done?
I saw this tutorial, but not sure what are the correct values, since the
netstat -anr doesn’t give a similar output (I have only one record:
Thanks in advance
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.