All tags
ufw
Narrow down
Shell28
- Tip
sudo ufw app update allUfw app update --add-new loads a changed app profile into the firewallAfter you edit or create a ufw application profile, this command makes the firewall use the new version.2 Dec 2026 - Tip
sudo ufw show rawUfw show raw prints the complete firewall as iptables rulesShows everything ufw has actually loaded, which is handy when a rule does not behave as expected.2 Dec 2026 - Tip
sudo ufw allow to 10.0.0.1 proto espAllow IPsec in ufw with proto esp and proto ahIPsec uses protocols 50 and 51, so a normal port rule does not cover it.2 Dec 2026 - Tip
sudo ufw allow to 224.0.0.0/24 from 10.0.0.1 proto vrrpLet keepalived talk through ufw with proto vrrpKeepalived uses VRRP, protocol 112, which ufw only accepts in the full rule syntax.2 Dec 2026 - Tip
sudo ufw show listeningUfw show listening matches open ports to the rules that cover themLists listening ports with their program and the ufw rule that applies.30 Nov 2026 - Tip
grep IPV6 /etc/default/ufwCheck IPV6=yes in /etc/default/ufw, or your IPv6 ports stay unfiltered by ufwMakes sure ufw writes rules for IPv6 as well as IPv4.30 Nov 2026 - Tip
sudo ufw allow proto tcp from any to any port 80,443 comment 'web'Ufw allow proto tcp with port 80,443 opens several ports in one ruleCombines a list of ports and port ranges into a single firewall rule.30 Nov 2026 - Tip
sudo ufw deny out to 203.0.113.0/24Ufw deny out to an address stops the server from reaching one hostBlocks outgoing connections from the server to a chosen address or network.30 Nov 2026 - Tip
ufw --force enableufw enable with the force flag skips the SSH question, so put it last in a scriptEnables the firewall without the interactive question, for setup scripts.30 Nov 2026 - Tip
sudo ufw allow 8080Ufw allow 53 without /tcp opens both TCP and UDPShows why adding the protocol to a port rule keeps the opening as small as needed.30 Nov 2026 - Tip
sudo ufw allow log 22/tcpUfw allow log writes every new connection of one rule to the logLogs connections that match one specific rule, without raising the global log level.30 Nov 2026 - Tip
sudo journalctl -k --since '1 hour ago' | grep 'UFW BLOCK'Read a [UFW BLOCK] line by its SRC, DPT and PROTO fieldsExplains the fields in a ufw log line so you can see what was blocked.30 Nov 2026 - Tip
sudo ufw reject 8080/tcpUfw reject answers right away, where deny lets the other side waitRefuses a connection with an immediate reply instead of silently dropping it.27 Nov 2026 - Tip
sudo ufw resetUfw reset starts the firewall over and keeps a backup of your old rulesWipes all firewall rules back to the defaults and saves the old rule files first.27 Nov 2026 - Tip
sudo ufw show addedUfw show added lets you check your rules before you enable the firewallLists the firewall rules you have added so you can check them before turning ufw on.11 Sep 2026 - Tip
sudo ufw status numberedUfw status numbered lets you delete a rule by its numberRemoves a firewall rule by its number from the numbered status list.6 Sep 2026 - Tip
sudo ufw limit sshUfw limit slows down anything hammering your SSH portAllows SSH but blocks any address that opens six or more connections in thirty seconds.27 Aug 2026 - Tip
sudo ufw insert 1 deny from 203.0.113.7Ufw insert 1 puts a deny rule above your allow rulesAdds a rule at a chosen position so it is evaluated first.15 May 2026 - Tip
sudo ufw allow in on tailscale0Ufw allow in on tailscale0 trusts one interface instead of addressesAllows traffic arriving on one network interface, such as a VPN.11 May 2026 - Tip
sudo ufw reloadUfw before.rules is where you drop ping repliesEdits ufw's rule file to stop the host from answering pings.11 May 2026 - Tip
sudo ufw --dry-run allow 8080/tcpUfw --dry-run prints the rules it would add without applying themShows what a ufw command would change without making the change.11 May 2026 - Tip
sudo ufw status verboseUfw status verbose shows the defaults and the logging levelPrints active state, default policies and log level with the rule list.11 May 2026 - Tip
sudo ufw route allow in on wg0 out on eth0 to 192.168.1.0/24Ufw route allow controls traffic that passes through the hostWrites firewall rules for traffic that is forwarded between interfaces.11 May 2026 - Tip
sudo ufw default deny incomingUfw default deny incoming sets the policy for everything without a ruleSets what ufw does with traffic that none of your rules match.10 May 2026 - Tip
sudo ufw app listUfw app list shows the ready-made profiles for installed servicesUses named service profiles to open the right ports with one word.10 May 2026 - Tip
sudo ufw logging mediumUfw logging medium decides how much the firewall writes downSets how many firewall events ufw writes to its log file.10 May 2026 - Tip
sudo ufw delete allow 80/tcpUfw delete allow 80/tcp removes a rule by repeating itRemoves a firewall rule by naming it rather than looking up its number.10 May 2026 - Tip
sudo ufw allow from 192.168.1.0/24 to any port 5432 proto tcpUfw allow from a subnet to one port keeps a service on your LANOpens a port only to one source network instead of to everyone.10 May 2026
Media2
- Tip
[Jellyfin]Write your own ufw application profile in /etc/ufw/applications.dDefines a named profile for your own service so rules refer to a name.30 Nov 2026 - Tip
sudo ufw allow 8096/tcp comment 'Jellyfin'Ufw allow with comment puts the reason for a rule next to itAdds a short note to a firewall rule so you remember why the port is open.27 Nov 2026
Network1
Docker1
Nothing matches.