Sharing in another network

Pedro Brandao pbrandao at inescn.pt
Mon Jul 12 10:47:25 GMT 1999



"Stephen L Arnold" <sarnold at coyote.rain.org> wrote:

> On 10 Jul 99, Pedro Brandao <pbrandao.spam at 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



More information about the samba mailing list