Hi, I'm trying to share a machine that's on the other side of a gateway. The machine being shared is a Linux (kernel 2.2.1 (RedHat 5.2) and samba 2.0.3), and the box trying to access it is NT4.0 with SP5. It looks something like this ------- --------- ------ |Linux|-----------|Gateway|----------| NT | ------- --------- ------ 192.168.32.72 192.168.32.128 192.168.31.81 (linBox) 192.168.31.128 (ntBox) (gate) The gateway routes the packets between the two (runs Linux RedHat (kernel 2.2.1)). On linBox I've more than 1 network interface, but I've denied access on smb.conf to all but 192.168.32. and 192.168.31. . hosts allow = 192.168.31., 192.168.32. hosts deny = ALL Also included: interfaces = 192.168.32.72/24 bind interfaces only = Yes ntBox also has more than 1 network interface, but I want it to use 192.168.31.81 (it's the one to get to the gateway). If I try on NT to net use * \\192.168.32.72\userShare I get error 53 (The network path was not found), the same thing if I map the drive. I've tryed to add linBox to a wins server, to the lmhosts on ntBox, no results. If I use a network address that the boxes have (say 192.168.28. ), it works fine. I've looked up at: http://support.microsoft.com/support/kb/articles/Q137/5/65.ASP ( System Error 53 When Connecting to a Fully Qualified Domain Name (FQDN)) http://support.microsoft.com/support/kb/articles/q161/4/31.asp (Connecting to NetBIOS Resources Using DNS Names or IP Addresses) but got no results. The networks 31 and 32 don't allow broadcasts (it's IP over ATM). Reading other Samba papers (from MS) I got the idea that the client NT would try the following to connect to the server (using WINS): 1 - check if local machine 2 - check cache names 3 - check WINS server 4 - try broadcast 5 - check lmhosts 6 - check hosts (if configured to do so) In my case it should stop at 3, because I used a wins server and linBox as registered ther. What could be wrong? Thanks for any help Pedro Brandao
"Stephen L Arnold" <sarnold@coyote.rain.org> wrote:> On 10 Jul 99, Pedro Brandao <pbrandao.spam@inescn.pt> had questions > about Sharing in another network: > > > The gateway routes the packets between the two (runs Linux RedHat > > (kernel 2.2.1)). > > Which ports are you forwarding?I'm forwarding all ports. I've only enabled ip_forward and compiled my kernel with "advanced router" on. Also configured "route" to have both networks.> [snip] > > > If I try on NT to > > net use * \\192.168.32.72\userShare > > I get error 53 (The network path was not found), the same thing if I > > map the drive. > > What happens when you try this: > > net use * \\linBox\userShare > > Does it resolve, or timeout? >It outputs "System error 51: Remote computer not available" I didn't mentioned it but I have in linBox's smb.conf: netbios name = linBox> > > I've tryed to add linBox to a wins server, to the lmhosts on ntBox, > > no results. If I use a network address that the boxes have (say > > 192.168.28. ), it works fine. > > Can you explain what you mean here? >Sorry, I missed a "both" ("... _both_ boxes..."). What I meant was, if I configure the machines to have a common network (say 192.168.28. ) , replacing the mentioned configuration for a common network between linBox and ntBox (this network is also IP over ATM), putting hosts allow = 192.168.28. hosts deny = ALL interfaces = 192.168.28.72/24 bind interfaces only = Yes on the linBox; it all works fine. But with regard to your first question, if I try I've not told you the complete picture. To be more specific I have more than one gateway (with same OS configuration) ------- ---------- ---------- ------ |Linux|-----------|Gateway1|-----------|Gateway2|----------| NT | ------- ---------- ---------- ------ 192.168.32.72 192.168.32.122 192.168.31.128 192.168.31.81 (linBox) 192.168.30.122 192.168.30.128 (ntBox) ntBox has Gateway2 for network 32 and linBox has Gateway1 for net 31. The forwarding, as you can see is done by the gateways in net 30. All the networks are IP over ATM (so no broadcasts). If I use tcpdump in the interface for network 30 in Gateway2 I can see the udp connections for netbios. (regarding you first question) Thanks for your interest Pedro Brandao
Maybe Matching Threads
- Two outbound internet links, using one network interface
- Can't re-add NT box to domain
- winbind: getent passwd displays the user, but SAMBA says Get_Pwnam_internals didn't find user
- [3.0.23d] winbind: ads_connect for domain X failed: Operations error
- I can't get multiple interfaces to work