On Tue, 8 Oct 2002, Brook Humphrey wrote: > On Tuesday 08 October 2002 02:00 am, Buchan Milne wrote: > > > ok remember, msec on standard, firewall off, and make sure if you have > > > host allow set in your smb.conf that is allowing the correct subnets. > > > These were all the issues I was having. > > > > No! Never test samba (and say it's not working) with a 'hosts allow =' > > configuration. Only use hosts allow once you have samba working, and you > > know that reverse lookups work. > > Well to be fare I have had that line in there for a long time and it never > occurred to me that it could be the issue because the smb.conf has been in > use for over a year maybe more. What changed was the way the default tools > set up the connection sharing. > > Also I'm not recommending anyone else to use this if they don't want to. I'm > just pointing out the fact that they could have problems if they do use it > and what the problem is. >
You encountered one problem, but if you don't have working reverse DNS lookups, and you don't have a permanent connection from your server to all it's DNS servers (ie an ICS box, when not dialled in), your samba server will attempt to reverse lookup the ip (when using hosts allow), but since it can't reach the DNS servers, will do a 30s timeout, by which time the windows client has given up, and we'll get a report saying "samba doesn't work at all". The samba error message for this wasn't (and may still not be) very informative. So, be careful with that option, and never send a bug report if you have 'hosts allow' and don't know your stuff (ie, just take it out, and test, and then send the bug report, then put it back in). And realise there are good reasons for some things ... Buchan -- |----------------Registered Linux User #182071-----------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
