init
This commit is contained in:
commit
c5cd492449
475 changed files with 27928 additions and 0 deletions
35
technology/applications/network/ufw.md
Normal file
35
technology/applications/network/ufw.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
obj: application
|
||||
os: linux
|
||||
---
|
||||
# ufw
|
||||
Ufw stands for Uncomplicated Firewall, and is a program for managing a netfilter firewall on [Linux](../../linux/Linux.md). It provides a command line interface and aims to be uncomplicated and easy to use.
|
||||
|
||||
## Basic configuration
|
||||
|
||||
A very simplistic configuration which will deny all by default.
|
||||
```shell
|
||||
ufw default deny
|
||||
```
|
||||
|
||||
The next line is only needed _once_ the first time you install the package:
|
||||
```shell
|
||||
ufw enable
|
||||
```
|
||||
|
||||
See status:
|
||||
```shell
|
||||
ufw status
|
||||
```
|
||||
|
||||
Enable/Disable
|
||||
```shell
|
||||
ufw enable
|
||||
ufw disable
|
||||
```
|
||||
|
||||
Allow/Deny ports
|
||||
```shell
|
||||
ufw allow <app|port>
|
||||
ufw deny <app|port>
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue