From 9f2d9fe9bbf899a4548be1d0b16a578be5972b8d Mon Sep 17 00:00:00 2001 From: bain Date: Sat, 31 Dec 2022 22:49:08 +0100 Subject: [PATCH] smbshare: add firewall exception --- scripts/smbshare/script.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/smbshare/script.sh b/scripts/smbshare/script.sh index 50c8c09..479e895 100644 --- a/scripts/smbshare/script.sh +++ b/scripts/smbshare/script.sh @@ -22,4 +22,10 @@ _ch_004-configure_smbd() { sudo systemctl reload smbd.service } +_ch_005-allow_firewall() { + if command -v ufw &> /dev/null; then + sudo ufw allow samba; + fi; +} + _run_checkpoints;