[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ufw e samba



mer 29 novembre 2023, alle 15:00 (GMT+0100), Piviul ha scritto:
> 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
> > [...]

PREMESSE IMPORTANTI
* di firewall non sono un esperto
* di samba non so praticamente nulla
* uso samba solo per condividere back-up di DVD da un PC a kodi su
  smart-tv
* 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
[...]
-- 
Cura ut valeas
Johan Haggi
postridie Kalendas Decembres MMDCCLXXVI ab Urbe condita
OpenPGP key: https://keys.openpgp.org/search?q=orsogrigio%40disr.it
Fingerprint: 60B3 42CB E145 F8E9 8132  6CDD 194E 4326 B645 F109

Attachment: signature.asc
Description: PGP signature


Reply to: