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.

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