protocol: udp | protocol: udp | ||||
``` | ``` | ||||
Allow from a range of ports, tcp and udp | |||||
``` | |||||
ufw: | |||||
services: | |||||
"10000:20000/tcp": | |||||
to_port: "10000:20000" | |||||
protocol: tcp | |||||
"10000:20000/udp": | |||||
to_port: "10000:20000" | |||||
protocol: udp | |||||
``` | |||||
Allow from two specific ports, udp: | Allow from two specific ports, udp: | ||||
``` | ``` | ||||
ufw: | ufw: |
deny: True | deny: True | ||||
from_addr: 10.0.0.1 | from_addr: 10.0.0.1 | ||||
# Deny everything from a multiple ip addresses | |||||
'*': | |||||
# Deny everything from multiple ip addresses and avoid | |||||
# conflicts with already defined service '*' | |||||
'*/multiple': | |||||
to_port: '*' | |||||
protocol: tcp | protocol: tcp | ||||
deny: True | deny: True | ||||
from_addr: | from_addr: |