Am using a samba share on Ubuntu 16.04 server, and wanted to enable Samba traffic in ufw
using sudo ufw allow from 192.168.8.0/24 to any app Samba comment 'allow samba from local'
which returned the error "ERROR: Could not find a profile matching 'Samba'".
Cause: I was using the minimal amount of tooling required to use Samba (cifs-tools
) on my server, which doesn't include the Samba application file.
Fix: install the samba
package... or manually create the file:
sudoedit /etc/ufw/applications.d/samba
[Samba]
title=LanManager-like file and printer server for Unix