Can't connect via samba from Vbox XP Guest when restricting IP with hosts allow in smb.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
lsb_release -rd
Description: Ubuntu 10.04.3 LTS
Release: 10.04
apt-cache policy samba
samba:
Installed: 2:3.4.7~
Candidate: 2:3.4.7~
Version table:
*** 2:3.4.7~
500 http://
500 http://
100 /var/lib/
2:
500 http://
I'm assuming this is a bug, as it worked before.
I have a WinXP VirtualBox guest that I like to share folders with via samba (please don't suggest using the VBox shares option as a workaround). In the past, I was able to restrict access to just the XP Guest via
hosts allow = 192.168.
in the smb.conf file, as the vboxnet0 interface is on that IP range (it's 192.168.1.101). "bind interfaces only = true" is commented out, as are all "interfaces" lines. At some point (I'm not sure when, as I don't use the XP Guest that frequently) this stopped working. If I comment out the hosts allow line such that access is available for everyone, then the XP Guest can connect.
I have the same problem if I comment out "hosts allow" and have
bind interfaces only = true
interfaces = lo vboxnet0
The first setup listed has worked previously, so I'm filing it as a bug. Again, by simply changing the smb.conf by commenting out the "hosts allow" line and restarting samba, I have access to the shares (so the shares are being put up properly), and I'm asked for my samba username and password when accessing from the guest, so I think that end of it is behaving properly. There seems to be something wrong with how it's set up to filter on IP or interface.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: samba 2:3.4.7~
ProcVersionSign
Uname: Linux 2.6.32-33-generic i686
Architecture: i386
Date: Sat Sep 3 12:45:34 2011
ProcEnviron:
LANGUAGE=en_US:en
LANG=en_US.UTF-8
SHELL=/bin/bash
SambaServerRegr
SourcePackage: samba
UbuntuFailedCon
Changed in samba (Ubuntu): | |
importance: | Undecided → Low |
I thought "ubuntu-bug samba" would have pulled in my smb.conf automatically, but it doesn't look like thta happened. Here it is. I deleted most of the share config at the bottom for privacy issues, but left one in there with the username redacted.