bonjour a tous!
après avoir passé une nuit a chercher une réponse sur internet, je me tourne vers vous car je n'arrive pas a résoudre mon problème.
voila la situation:
j'ai un serveur Debian 8 avec samba 4 installé en standalone server, ainsi que postfix, dovecot, ufw, fail2ban et dsnmasq.
j'ai 2 partages samba (intranet et saves) montés, j'arrive a me connecter dessus a partir de machines windows 7 pro, en montant manuellement un lecteur réseau, que ce soit sous la forme
\\X.X.X.X\intranet ou \\hostname\intranet.
par contre le serveur samba n'apparait pas dans le voisinage réseau windows 7, ni les répertoires partagés.
j'ai pourtant bien le paramétre "browseable = yes" défini dans les partages, et je l'ai aussi ajouté dans la section "global" du smb.conf.
au cas ou, j'ai aussi activé le mode "serveur WINS" de samba, en lui disant de passer par un serveur dns, et coté dnsmasq je l'ai configuré pour qu'il envoi aux clients dhcp l'adresse du serveur WINS.
sur les clients windows 7, j'ai testé la résolution de nom DNS (via nslookup) et celle de nom WINS (via nblookup), tout marche bien.
les windows 7 sont connecté via la carte réseau eth1 (reseau local), ufw est entièrement désactivé sur cette interface.
ils sont en mode "réseau de bureau" et se voient entre eux, ainsi que les imprimantes wifi.
maintenant je sèche, je ne comprend pas d’où provient le problème.
une idée?
voila le résultat de "testparm -s"
# Global parameters
[global]
netbios name = SAMBA
interfaces = eth1
bind interfaces only = Yes
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
wins support = Yes
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[intranet]
path = /home/samba/intranet
valid users = @smbusers
force group = smbusers
read only = No
create mask = 0770
force create mode = 0770
directory mask = 0770
[saves]
path = /home/samba/saves
valid users = smbbackup
force group = smbbackup
read only = No
create mask = 0770
force create mode = 0770
directory mask = 0770
et le dnsmasq.conf (j'ai juste laissé les commentaires des parties modifiées) :
# Configuration file for dnsmasq.
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
# If you don't want dnsmasq to poll /etc/resolv.conf or other resolv
# files for changes and re-read them then uncomment this.
no-poll
# If you want dnsmasq to listen for DHCP and DNS requests only on
# specified interfaces (and the loopback) give the name of the
# interface (eg eth0) here.
# Repeat the line for more than one interface.
interface=eth1
# If you don't want dnsmasq to read /etc/hosts, uncomment the
# following line.
no-hosts
# or if you want it to read another file, as well as /etc/hosts, use
# this.
addn-hosts=/etc/hosts.dnsmasq
# Set this (and domain: see below) if you want to have a domain
# automatically added to simple names in a hosts-file.
expand-hosts
# Set the domain for dnsmasq. this is optional, but if it is set, it
# does the following things.
# 1) Allows DHCP hosts to have fully qualified domain names, as long
# as the domain part matches this setting.
# 2) Sets the "domain" DHCP option thereby potentially setting the
# domain of all systems configured by DHCP
# 3) Provides the domain part for "expand-hosts"
domain=xxxxxxxxxxxx.com
# Uncomment this to enable the integrated DHCP server, you need
# to supply the range of addresses available for lease and optionally
# a lease time. If you have more than one network, you will need to
# repeat this for each network on which you want to supply DHCP
# service.
dhcp-range=192.168.0.10,192.168.0.100,255.255.255.0,24h
# The following DHCP options set up dnsmasq in the same way as is specified
# for the ISC dhcpcd in
# http://www.samba.org/samba/ftp/docs/textdocs/DHCP-Server-Configuration.txt
# adapted for a typical dnsmasq installation where the host running
# dnsmasq is also the host running samba.
# you may want to uncomment some or all of them if you use
# Windows clients and Samba.
#dhcp-option=19,0 # option ip-forwarding off
dhcp-option=44,192.168.0.1 # set netbios-over-TCP/IP nameserver(s) aka WINS server(s)
#dhcp-option=45,0.0.0.0 # netbios datagram distribution server
#dhcp-option=46,8 # netbios node type
merci d'avance pour l'aide:)
Dernière modification par winproof (12-05-2016 05:20:12)
Minute existentielle : "Si nous ne sommes pas sensés grignoter la nuit, pourquoi y a-t-il une lumière dans le frigo?"