Hey,
every time I login to my server I get this message:
"ufw" has not been enabled, however it has been configured. To enable it,
run "ufw enable".
If I run ufw status I get Status: active.
When I run ufw enable I get Firewall is active and enabled on system startup. However if I exit out and log back in I get the previous message again.
How can I fix this?
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!
Sounds like you are likely using a One-Click Application, right? The “message of the day” [MOTD] that is shown on login is a static message that provides some basic documentation about how the One-Click is initially configured. It is not updated when ufw is enabled or disabled. You can remove it altogether using:
sudo rm -rf /etc/update-motd.d/99-one-click
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.