ufw-allow: add page (#23299)

This commit is contained in:
Pradeep Tarakar
2026-07-29 03:01:56 +05:30
committed by GitHub
parent d936cae34c
commit 28eb1331b9
+28
View File
@@ -0,0 +1,28 @@
# ufw allow
> Allow traffic through the firewall.
> More information: <https://manned.org/ufw>.
- Allow all traffic on a port:
`ufw allow {{port}}`
- Allow traffic for a protocol on a port:
`ufw allow {{port}}/{{protocol}}`
- Allow incoming traffic for a protocol and add a comment for documentation:
`ufw allow in {{protocol}} comment '{{comment}}'`
- Allow all traffic from a source address:
`ufw allow from {{source_address}}`
- Allow TCP traffic from 192.168.1.12 to 192.168.1.100 on port 443:
`ufw allow from 192.168.1.12 to 192.168.1.100 port 443 proto tcp`
- Allow all incoming GRE traffic to 192.168.1.100 on the eth0 interface:
`ufw allow in on eth0 to 192.168.1.100 proto gre`