fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


linux:firewall:ufw

Table of Contents

ufw

Installation

sudo apt install ufw
sudo apt install gufw          #universe, optionale grafische Oberfläche

Konfiguration

Zuerst Regeln für Remotezugriffsports erstellen, dann ufw aktivieren!

sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 22/tcp
sudo ufw allow 2300:2400/udp

sudo ufw allow from 10.1.1.0/24                              # any
sudo ufw allow from 10.1.2.0/24 to any port 8080 proto tcp   # allow port 8080/tcp für 10.1.2.0
sudo ufw delete allow from 10.1.1.0/24

sudo ufw status numbered
sudo ufw delete 2

sudo ufw enable
sudo ufw status
sudo ufw reload 

sudo ufw default deny incoming
sudo ufw default allow outgoing

sudo ufw logging on
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.  More information about cookies 
linux/firewall/ufw.txt · Last modified: 2024/02/17 19:03 by 127.0.0.1