ufw-allow
Allow traffic through Uncomplicated Firewall
TLDR
SYNOPSIS
ufw [--dry-run] allow [rule]
DESCRIPTION
ufw allow adds an allow rule to Uncomplicated Firewall so matching packets are accepted. Rules can be simple port allows (`ufw allow 22/tcp`), service or application profiles (`ufw allow OpenSSH`), or full five-tuple style rules with source, destination, port, protocol, and interface.Allow rules are typically configured before `ufw enable` on remote hosts so SSH and other admin access remain available. Use `ufw status numbered` to list rules and `ufw delete` to remove them by number.
PARAMETERS
allow
Permit matching traffic (inserts an allow rule)port[/protocol]
Simple form: port number, optional /tcp or /udpfrom address
Match source address or network (CIDR)to address
Match destination addressport port
Destination port (or range) when using full rule syntaxproto protocol
Protocol: tcp, udp, gre, etc.in / out
Direction of trafficon interface
Limit rule to a network interfacecomment 'text'
Attach a human-readable comment to the rule--dry-run
Show what would change without applying it
INSTALL
CAVEATS
Requires root or sudo. Order and default policies (`ufw default deny incoming`) matter — an allow rule only helps if the default policy would otherwise block the traffic. Application profile names must match installed profiles under `/etc/ufw/applications.d/`.
HISTORY
Part of ufw (Uncomplicated Firewall), the Ubuntu-originated frontend for iptables/nftables.
SEE ALSO
ufw(8), ufw-enable(8), ufw-disable(8), iptables(8), nftables(8)