Question

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

Posted December 5, 2020 8.6k views
PythonAPIUbuntu 20.04Slack

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?

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.

×
Submit an Answer
1 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