firewall.table detect dev windowmanager samba

This commit is contained in:
pvincent
2024-04-26 22:32:05 +04:00
parent 78b7d8a4a3
commit 09b93bc80e
4 changed files with 39 additions and 14 deletions
+9 -1
View File
@@ -17,15 +17,23 @@ table inet firewall {
tcp dport {22, 2222, 80, 443} accept
{%- if env.target == 'dev' %}
{%- if env.desktop == 'true' %}
# DESKTOP RULES BELOW
# -------------------
# allow mDNS
udp dport mdns accept
{%- if env.samba == 'true' %}
# allow SAMBA
udp dport netbios-ns accept comment "Accept NetBIOS Name Service (nmbd)"
udp dport netbios-dgm accept comment "Accept NetBIOS Datagram Service (nmbd)"
tcp dport netbios-ssn accept comment "Accept NetBIOS Session Service (smbd)"
tcp dport microsoft-ds accept comment "Accept Microsoft Directory Service (smbd)"
{%- endif %}
{%- endif %}
{%- endif %}
}