UFW: Difference between revisions
Jump to navigation
Jump to search
Line 88: | Line 88: | ||
| valign="top" | | | valign="top" | | ||
* [https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-22-04 UFW » Set Up on Ubuntu 22.04] | * [https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-22-04 UFW » Set Up on Ubuntu 22.04] | ||
* [https://wiki.debian.org/Uncomplicated%20Firewall%20%28ufw%29 UFW] | |||
| valign="top" | | | valign="top" | |
Revision as of 09:40, 11 August 2024
cat <<-'EXE'|sudo bash
apt-get update;echo
apt list -a --upgradable
apt-get install -y ufw nmap telnet
EXE
sudo ufw allow http
sudo ufw allow OpenSSH
sudo ufw allow in on lxdbr0
sudo ufw route allow in on lxdbr0
sudo ufw route allow out on lxdbr0
sudo ufw status verbose
sudo systemctl status ufw
sudo ufw enable
sudo ufw allow 5900/tcp
sudo ufw status verbose
sudo ufw allow http
sudo ufw allow OpenSSH
sudo ufw allow 5900/tcp
ufw status
ufw status verbose
systemctl status ufw
Playground
netstat -a
netstat -lpn
sudo ufw status
apt list --installed
netstat -uap|grep nginx
|
sudo ss -tulwn | grep LISTEN
sudo ss -tulpn | grep LISTEN
sudo ss -tulpn | grep LISTEN | grep sshd
sudo ss -tulpn | grep LISTEN | grep minio
sudo ss -tulpn | grep LISTEN | grep resolve
|
sudo ufw status
sudo ufw app list
sudo ufw allow 'Nginx HTTP'
sudo ss -tulpn | grep LISTEN
sudo lsof -i -P -n | grep LISTEN
|
| ||
sudo systemctl status ufw
sudo ufw status verbose
sudo ufw disable
sudo ufw enable
sudo ufw status
|
sudo apt-get install gufw
sudo ufw status numbered
|
References
| ||