networking:linux:ubuntu_firewall
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| networking:linux:ubuntu_firewall [2020/05/24 10:16] – created bstafford | networking:linux:ubuntu_firewall [2022/11/23 12:49] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| Adding Rules | Adding Rules | ||
| - | Before adding rules, it’s best to explicitly set the default behavior. By default, I like to block everything: both incoming and outgoing traffic. After that is done, I selectively open ports to support the services I wish to run. In contrast, UFW, by default, denies all incoming traffic but allows all outgoing traffic. That setup is accomplished manually with the following commands.</ | + | Before adding rules, it’s best to explicitly set the default behavior. By default, I like to block everything: both incoming and outgoing traffic. After that is done, I selectively open ports to support the services I wish to run. In contrast, UFW, by default, denies all incoming traffic but allows all outgoing traffic. That setup is accomplished manually with the following commands. |
| $ sudo ufw default deny incoming | $ sudo ufw default deny incoming | ||
| Line 21: | Line 21: | ||
| UFW also has a list of application presets, for common servers such as Apache, OpenSSH, Lighttpd, and Samba. You can view the list by issuing the command: | UFW also has a list of application presets, for common servers such as Apache, OpenSSH, Lighttpd, and Samba. You can view the list by issuing the command: | ||
| - | $ sudo ufw app list | + | $ sudo ufw app list</ |
| =====Create Rules===== | =====Create Rules===== | ||
networking/linux/ubuntu_firewall.1590315389.txt.gz · Last modified: (external edit)
