{{Header}}
{{#seo:
|description=Host Firewall Installation and Configuration
|image=Firewall-34227640.png
}}
[[File:Firewall-34227640.png|200px|thumb]]
{{intro|
Host Firewall Installation and Configuration
}}
= Introduction =
It is recommended to use a simple host firewall and deny any incoming connections on all ports. [https://gufw.org/ gufw] provides a simple graphical user interface for the [https://wiki.debian.org/Uncomplicated%20Firewall%20%28ufw%29 Uncomplicated Firewall] program. [
Uncomplicated Firewall by itself only provides a command-line interface for managing the netfilter firewall.
] It is easy to perform common tasks like blocking or allowing P2P, individual, or pre-configured ports.
= How-to: Install and Configure a Firewall =
The following steps install [https://packages.debian.org/stable/gufw gufw on a Debian host].
{{Box|text=
'''1.''' Install gufw.
{{CodeSelect|code=
sudo apt update && sudo apt install gufw
}}
'''2.''' Start gufw.
{{CodeSelect|code=
gufw
}}
'''3.''' Press Unlock
. Enter the password.
'''4.''' Press Enabled
. [The firewall is disabled by default.]
'''5.''' Check the settings.
By default, the settings should be Incoming: Deny
and Outgoing: Allow
.
}}
Although not recommended, it is possible to add special firewall rules, use pre-configured options for common programs and services, or set other advanced options in gufw by following [https://help.ubuntu.com/community/Gufw this guide].
For further information on firewalls, see [[Host_Firewall|here]].
= References =
{{reflist|close=1}}
{{Footer}}
[[Category:Documentation]]