Installing A Firewall – Basics (Raspberry Pi) – Geek Tech
Installing A Firewall – Basics (Raspberry Pi) – Geek Tech Jun 22, 2019 Ubuntu Firewall (UFW) - Configure, Open/Close Ports Dec 02, 2019
sudo ufw allow from 192.168.10.0/24 to 192.168.10.1 port 53 proto tcp sudo ufw allow from 192.168.10.0/24 to 192.168.10.1 port 53 proto udp This will allow TCP and UDP DNS (port 53) traffic from your local private network (which I assume is 192.168.10.0/24, or in other words, 192.168.10.1-255) and not anywhere else.
Dec 29, 2010
sudo ufw allow 22 Rules can also be added using a numbered format: sudo ufw insert 1 allow 80 Similarly, to close an opened port: sudo ufw deny 22 To remove a rule, use delete followed by the rule: sudo ufw delete deny 22 It is also possible to allow access from specific hosts or networks to a port.
How to Enable, Deny, Allow, Delete Rules on Ubuntu UFW Oct 27, 2016 How to open ssh 22/TCP port using ufw on Ubuntu/Debian Jan 24, 2020 Ubuntu Allow Port Through Firewall – Linux Hint