Question

Step 5: "sudo: ufw: command not found"

Connected Tutorial
This question is a follow-up to this tutorial:

I’m on Step 5 and am getting the error above when I run the sudo ufw commands. I’m assuming this has something to do with your warning about ports. How do I forward the port from my personal firewall to the port that will be running on my Mac?


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
December 5, 2020
Accepted Answer

Hi there @negustaf,

If you are going to be running the Slackbot on your Mac and if you already have a local/personal firewall there is no need to install UFW.

You would need UFW installed on your server so that you could secure your ports so that only certain ports would be accessible via the internet.

Regarding your question on how to forward the port from your personal firewall to your Mac, this would really depend on the type of firewall that you have and your local network setup. But in general, what you need to do is setup a NAT rule or a port forwarding rule from the firewall/router to your Mac’s IP address and port.

Regards, Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel