Ciao a tutti, sto provando a configurare ufw per il traffico samba.
Questa è la mia situazione:
> # ufw status | grep -i samba
> Samba ALLOW
192.168.64.0/20
> # sudo ufw app info Samba
> Profile: Samba
> Title: LanManager-like file and printer server for Unix
> Description: The Samba software suite is a collection of programs that
> implements the SMB/CIFS protocol for unix systems, allowing you to serve
> files and printers to Windows, NT, OS/2 and DOS clients. This protocol is
> sometimes also referred to as the LanManager or NetBIOS protocol.
>
> Ports:
> 137,138/udp
> 139,445/tcp
> # grep UFW.*SPT=137 /var/log/syslog | tail -n 5
> 2023-11-29T14:47:05.935411+01:00 psala-lx kernel: [197355.101935] [UFW
> BLOCK] IN=enp5s0 OUT= MAC=c8:60:00:5a:05:2d:38:ca:84:38:6e:b1:08:00
> SRC=192.168.70.78 DST=192.168.64.90 LEN=90 TOS=0x00 PREC=0x00 TTL=64
> ID=30123 DF PROTO=UDP SPT=137 DPT=56517 LEN=70
> 2023-11-29T14:47:05.935433+01:00 psala-lx kernel: [197355.102151] [UFW
> BLOCK] IN=enp5s0 OUT= MAC=c8:60:00:5a:05:2d:00:13:20:d9:95:66:08:00
> SRC=192.168.72.230 DST=192.168.64.90 LEN=90 TOS=0x00 PREC=0x00 TTL=128
> ID=1523 PROTO=UDP SPT=137 DPT=56517 LEN=70
> 2023-11-29T14:47:06.435385+01:00 psala-lx kernel: [197355.604213] [UFW
> BLOCK] IN=enp5s0 OUT= MAC=c8:60:00:5a:05:2d:8e:37:e8:8a:56:18:08:00
> SRC=192.168.64.2 DST=192.168.64.90 LEN=90 TOS=0x00 PREC=0x00 TTL=64
> ID=9779 DF PROTO=UDP SPT=137 DPT=42617 LEN=70
> 2023-11-29T14:47:06.435400+01:00 psala-lx kernel: [197355.604509] [UFW
> BLOCK] IN=enp5s0 OUT= MAC=c8:60:00:5a:05:2d:8e:37:e8:8a:56:18:08:00
> SRC=192.168.64.2 DST=192.168.64.90 LEN=90 TOS=0x00 PREC=0x00 TTL=64
> ID=9780 DF PROTO=UDP SPT=137 DPT=42617 LEN=70
> 2023-11-29T14:47:06.435401+01:00 psala-lx kernel: [197355.604869] [UFW
> BLOCK] IN=enp5s0 OUT= MAC=c8:60:00:5a:05:2d:ca:8b:e7:d0:ac:ef:08:00
> SRC=192.168.64.3 DST=192.168.64.90 LEN=96 TOS=0x00 PREC=0x00 TTL=64
> ID=32884 DF PROTO=UDP SPT=137 DPT=42617 LEN=76
Evidentemente sbaglio qualcosa ma cosa?
Piviul