Sharing in another network

Pedro Brandao pbrandao.spam at inescn.pt
Fri Jul 9 10:26:04 GMT 1999


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




More information about the samba mailing list