As default, Raspbian loads firewalld.service on boot.

I wish to define firewall's inbound and outbound ports in order to allow services such as pigpiod, VNC, SSH and so , to be able to control each other.

When using Ubuntu Mate- it is easy to download from Software center, a firewall software to control its firewall.

While using Raspbian - I don't find a porper way to do it. Googling around led to install ufw which is very minimal in capabilities and tiresome to work that way. Plus- systemctl enable ufw did not load it after boot.

I would love to get some help with this,


closed as too broad by Gene, techraf, Jacobm001 Sep 22 '17 at 22:02

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • What is the name of the package you installed on Ubuntu Mate? – Mark Stosberg Sep 19 '17 at 19:41
  • 2
    Firewall is built into the kernel and interfaced with iptables, ufw is "uncomplicated firewall" and is a wrapper for iptables. Anything you can do with any firewall config tool you can do through iptables, but the syntax/usage is very archaic. What about ufw is insufficient for your purposes? there are graphical wrappers for UFW like gufw – crasic Sep 19 '17 at 22:29
  • @crasic - thanks for you answer. firstly - archaic is mostly what bothers me ( since it all typ2ing, and don't have the flexabililty to define "home" ,"public" and so ). – Guy . D Sep 20 '17 at 4:30
  • @MarkStosberg - something more like "firewall-config" which can be downloaded via Ubuntu's software center – Guy . D Sep 20 '17 at 4:31

To sum up ( thanks to @crasic and @Mark ) - installing sudo apt-get install gufw install gui for ufw which a systemctl service,

sudo apt-get install firewall-config install gui for firewalld.

thanks alot !

Not the answer you're looking for? Browse other questions tagged or ask your own question.