Report this

What is the reason for this report?

Enable Outbound Traffic from Droplet through Reserved IP

Posted on July 8, 2025

Hello, I’ve set up a droplet to serve as a VPN (using the OpenVPN Access Server marketplace image) and added a Reserved IP address. I am trying to make the egress IP on the droplet be the Reserved IP. This guide is my source: https://docs.digitalocean.com/products/networking/reserved-ips/how-to/outbound-traffic/

I log in via PuTTY and retrieve the Anchor IP using this command from the docs:

curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/anchor_ipv4/gateway

that returns 10.10.0.1

I use that IP in this command from the docs:

sudo sh -c “ip route del 0/0; ip route add default via 10.10.0.1 dev eth0”

At this point the PuTTY window freezes, and after no amount of time am I able to log back in or access the droplet via the OpenVPN web interface. I have to destroy the droplet to try again. I have also tried:

sudo sh -c “ip route del 0/0; ip route add default via 10.10.0.1/16 dev eth0”

as well as this, first: sudo ip addr add 10.10.0.1/16 dev eth0

If anyone knows how to properly execute this command, please let me know! Thank you in advance



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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.