Sunday, September 7, 2025

Adding ufw rules using application profiles while restricting source network

Unfortunately, the ufw help doesn't provide an example for using application profiles while specifying the source network. Here's an example how "OpenSSH" profile can be used but restricting the source network to local:

sudo ufw allow from 192.168.0.0/24 to any app OpenSSH


No comments:

Post a Comment