What is the anchor ip subnet? Right now I’m losing access when using images if it changes from what I had ufw set to. What should I use to let ufw use any anchor? It’d be easy if i could use an interface but I can’t. Thanks.
To Action From
10.12.0.16 22/tcp ALLOW Anywhere
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!
Hello,
Can you go into a bit more detail what you are trying to do? If you are setting this up through a script, I would suggesting using the metadata to grab the anchor IP.
You can grab it with
curl http://169.254.169.254/metadata/v1/interfaces/public/0/anchor_ipv4/address
and it will return the anchor IP for the droplet. This would allow you to set this directly as opposed to setting a range that can vary based on region and other unpredictable factors.
If this doesn’t work, please go into a bit more information on what exactly you are trying to do and perhaps a more specific solution can be offered.
Edited for errors.
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.