PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:server:linux:ubuntu:ufw:ufw

ufw

sudo ufw status
sudo ufw enable
sudo ufw default deny
sudo ufw allow proto tcp from 10.0.123.0/24 to any port 22
sudo ufw status
wnoguchi@kurumi:~$ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW       10.0.4.0/24               
sudo ufw reload

Recipe

Allow everywhere from specific network

sudo ufw allow from 10.0.128.0/17

log

sudo ufw status
sudo ufw enable
sudo ufw default deny
sudo ufw status
sudo ufw allow port 22
sudo ufw allow 22/tcp
sudo ufw status
sudo ufw allow http
sudo ufw allow https
sudo ufw status
sudo ufw reload
sudo ufw status

References

tech/server/linux/ubuntu/ufw/ufw.txt · Last modified: 2019/08/19 08:07 by wnoguchi