[Samba-it] PDC multihomed e Samba logs

simo simo.sorce at xsec.it
Wed Dec 6 17:47:01 MST 2006


On Mon, 2006-12-04 at 11:54 +0100, Andriano Rino wrote:
> Utilizzo Samba 3.0.23d su Debian Sarge con backend OpenLdap
> 
> Ho configurato un pc come PDC SAMBA per un dominio su un server multihomed con 3 schede di 
> rete (1 con IP pubblico e 2 con indirizzi privati - 8 subnet), ma al momento i servizi 
> SAMBA sono offerti solo su una subnet.
> 
> I client sono Windows Xp pro sp2.
> 
> Volendo evitare traffico inutile ho inserito nel file smb.conf:
> ------------------------------------------
> interfaces = 192.168.2.253/24, 127.0.0.1
> bind interfaces only = Yes
> ------------------------------------------
> 
> Sto valutando il funzionamento del sistema e vorrei sottoporre un paio di gruppi di 
> messaggi uno sul server WINS e uno su SAMBA
> 
> 1) Servente WINS - nmbd
> =======================
> 
> Il servente nmbd continua a voler diventare a tutti i costi servente WINS su tutti gli 
> indirizzi in broadcast compreso l'INDIRIZZO PUBBLICO e quindi mi riempie i file di log con 
> messaggi (info) di vario genere:
> -----------------------------------------------------------------------------------------
> Ogni 5 minuti:
> - There is already a domain master browser at IP 80.y.z.x for workgroup MIODOMINIO 
> registered on subnet UNICAST_SUBNET
> 
> Ogni 15 minuti
> - nmbd[28659]:   nmbd/nmbd_browsesync.c:domain_master_node_status_fail(248)
> - nmbd[28659]:   domain_master_node_status_fail:
> - nmbd[28659]:   Doing a node status request to the domain master browser
> - nmbd[28659]:   for workgroup MIODOMINIO at IP 80.y.z.x failed.
> - nmbd[28659]:   Cannot sync browser lists.
> -----------------------------------------------------------------------------------------

Uhmm potresti filtrare quello che viene dalla rete pubblica con
iptables. Credo che il problema sia dovuto al fatto che nmbd ascolta
sempre su 0.0.0.0 ovvero tutte le interfacce. Hai controllato che non ci
sia qualche bug report su https://bugzilla.samba.org ?

> 2) Servente SAMBA - smbd
> ========================
> 
> Nei log di SAMBA ho una serie di messaggi di questo tipo anche quando il tutto sembra 
> funzionare:
> -----------------------------------------------------------------------------------------
> - smbd[17080]: [2006/12/04 10:05:34, 0] lib/util_sock.c:read_data(534)
> - smbd[17083]: [2006/12/04 10:05:41, 0] lib/util_sock.c:write_data(562)
> - smbd[17083]: [2006/12/04 10:05:41, 0] lib/util_sock.c:send_smb(769)
> - smbd[17083]:   Error writing 4 bytes to client. -1. (Connessione abbattuta dal 
> corrispondente)
> -----------------------------------------------------------------------------------------

Questo e' normale, i client WinXP rono sempre due connessioni in
contemporanea, una su TCP 139 e l'altra su TCP 445 poi abbattono
brutalmente una delle due (di solito 139) appena ricevono il primo ack.

Samba prova a rispondere su entrambe ovviamente e su quell abbattuta
viene ritornato l'errore che vedi.

Simo.






More information about the samba-it mailing list