# ufw status | grep -i sambaEvidentemente sbaglio qualcosa ma cosa?
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
[...]
* la configurazuine che uso (e funziona) l'ho fatta 2 anni fa e non
ricordo perchè l'ho fatta così (mi sembra di ricordare che Anywhere sia
dovuto alla ricerca da parte dei TV su udp non su l'IP 192.168.1.8 del
PC ma su un multicast tipo 224.qualcosa).
sul PC con samba ho:
# /usr/sbin/ufw status
To Action From
-- ------ ----
[...]
192.168.1.8 139/tcp ALLOW IN 192.168.1.0/24 # smbd 192.168.1.8 445/tcp ALLOW IN 192.168.1.0/24 # smbd Anywhere ALLOW IN 192.168.1.0/24 137/udp # nmbd Anywhere ALLOW IN 192.168.1.0/24 138/udp # nmbd [...]
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
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
[...]
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 00:30:58 |
Calls: | 6,666 |
Calls today: | 4 |
Files: | 12,212 |
Messages: | 5,335,392 |