$ sudo ufw allow from X.X.X.0/24 to any app samba $ sudo ufw status verbose References http://ubuntuforums.org/showthread.php?t=806000 enable samba in ubuntu with ufw firewall enabled