[Samba] second samba server in my lan do not work
Matthias Meyer
Matthias.Meyer at gmx.li
Sun Feb 29 12:59:36 GMT 2004
Hello,
I have a problem with my samba-server running in a VirtualServer
(http://user-mode-linux.sourceforge.net/).
Internet
|
.------------------------------|-----.
| LinuxHost | |
| eth1=80.x.x.x |
| .---------------------. | |
| | VirtualServer (UML) | | |
| | eth0=192.168.0.111 | <iptables> |
| '----|----------------' | |
| | | |
| tap0 = 192.168.0.254 = eth0 |
'------------------------------|-----| .-------------------.
\ | / | eth0=192.168.0.53 |
- ----LAN-----------------| Windows-Client |
/ | \ '-------------------'
.----------|---------.
| eth0=192.168.0.160 |
| LinuxPC |
'--------------------'
I can access the shares of the VirtualServer from the LinuxPC by using
his name or his IP.
mount -t smbfs //VirtualServer/Video /mnt/disk
will also work as
mount -t smbfs //192.168.0.111/Video /mnt/disk
I can access the shares of the VirtualServer from Windows-Client only by
using his IP.
net use X: \\192.168.0.111\Video /YES
will work, but
net use X: \\VirtualServer\Video /YES
will not work.
Both, "net view" in the dos-box of a window-PC and "nmblookup -d 2 '*'" out
of a linux-box will show all win and linux/samba-PCs in my LAN but not the
VirtualServer.
Also smbclient seems to indicate strange results:
[LinuxPC]# smbclient -NL LinuxPC
added interface ip=192.168.0.160 bcast=192.168.0.255 nmask=255.255.255.0
Anonymous login successful
Domain=[PRIVATELAN] OS=[Unix] Server=[Samba 2.2.7a-security-rollup-fix]
Sharename Type Comment
--------- ---- -------
Data Disk U: Private Data
netlogon Disk Network Logon Service
IPC$ IPC IPC Service (Samba Server 2.2.7a-secur...)
ADMIN$ Disk IPC Service (Samba Server 2.2.7a-secur...)
Server Comment
--------- -------
LinuxPC Samba Server 2.2.7a-security-rollup-fix
Workgroup Master
--------- -------
PRIVATELAN LinuxPC
[LinuxPC]# smbclient -NL virtualserver
added interface ip=192.168.0.160 bcast=192.168.0.255 nmask=255.255.255.0
Domain=[PRIVATELAN] OS=[Unix] Server=[Samba 2.2.7a]
Sharename Type Comment
--------- ---- -------
Backup Disk B: Die Datensicherungen
Video Disk Filme
IPC$ IPC IPC Service (Samba Server 2.2.7a)
ADMIN$ Disk IPC Service (Samba Server 2.2.7a)
Server Comment
--------- -------
VIRTUALSERVER Samba Server 2.2.7a
Workgroup Master
--------- -------
PRIVATELAN VIRTUALSERVER
Both seems to be the master-server? Why?
My smb.conf in VirtualServer:
[global]
workgroup = PRIVATELAN
netbios name = VIRTUALSERVER
server string = Samba Server %v
#
# Security
security = user
map to guest = Bad User
encrypt passwords = Yes
username map = /etc/samba/smbusers
unix password sync = Yes
hosts allow = 192.168.0.0/255.255.255.0
#
# Domain-Management
os level = 65
preferred master = yes
domain master = yes
#
# WINS_Server
wins proxy = No
#
# should work as WINS-Server
# wins support = Yes
# dns proxy = Yes
# local master = Yes
# name resolve order = wins lmhosts hosts bcast
#
# should not work as WINS-Server
wins support = No
and the same within the LinuxPC:
[global]
#
workgroup = PRIVATELAN
netbios name = ATHLUX
server string = Samba Server %v
#
# Security
security = user
map to guest = Bad User
encrypt passwords = Yes
username map = /etc/samba/smbusers
unix password sync = Yes
hosts allow = 192.168.0.0/255.255.255.0
#
# Support Net-Logon
logon script = logon.bat
logon home = \\%N\%U\profile
domain logons = Yes
#
# Domain-Management
os level = 64
preferred master = No
domain master = No
#
# WINS_Server
wins proxy = No
# should work as WINS-Server
# wins support = Yes
# dns proxy = Yes
# local master = Yes
# name resolve order = wins lmhosts hosts bcast
#
# should not work as WINS-Server
wins support = No
# wins server = 192.168.0.x
Is it a problem with the smb.conf or the network configuration?
Or maybee with iptables? I have IPCop on the LinuxHost wich firewall is
designed to block most of eth1 (the external interface) and allow all on
eth0 (the internalinterface)
Another samba-server can be fully reached from all PCs in the LAN.
--
Don't panic
More information about the samba
mailing list