SNIP>
>
> Samba is installed on the server (192.168.0.1/24), and smbclient is
> available on the client (192.168.1.1/24), connected thru a gateway.
If you cannot connect to the server via IP addy, such as
\\192.168.0.1\<share>
then, it is very likely ports 137, 138, 139, and 445 are blocked
(certainly 139 and 445 are). Resolve this first.>
>
>
> the problem is that i can't connect to the server from another subnet
> via samba.
>
> here is smb.conf from the server (taken from the o'reilly book
'using
> samba'):
>
> [global]
> netbios name = server
> workgroup = GARDEN
> wins support = yes
> dns proxy = yes
> [test]
> comment = For testing only, please
> path = /export/tmp
> read only = no
>
> server side:
> [root at server etc]# ping client
> PING client (192.168.1.1) 56(84) bytes of data.
> 64 bytes from client (192.168.1.1): icmp_seq=1 ttl=63 time=0.924 ms
>
> [root at server etc]# smbclient -L server -N
> Anonymous login successful
> Domain=[GARDEN] OS=[Unix] Server=[Samba 3.0.37]
>
> Sharename Type Comment
> --------- ---- -------
> test Disk For testing only, please
> IPC$ IPC IPC Service (Samba 3.0.37)
> ...
>
> [root at server etc]# iptables -L
> Chain INPUT (policy ACCEPT)
> target prot opt source destination
>
> Chain FORWARD (policy ACCEPT)
> target prot opt source destination
>
> Chain OUTPUT (policy ACCEPT)
> target prot opt source destination
>
> client side:
> [root at client]# ping server
> PING server (192.168.0.1) 56(84) bytes of data.
> 64 bytes from server (192.168.0.1): icmp_seq=1 ttl=63 time=0.497 ms
>
> [root at client]# smbclient -L server -N
> Connection to hercule failed (Error NT_STATUS_UNSUCCESSFUL)
>
> when i connect from another client (located on the server's subnet, ie
> 192.168.0.2/24), it works:
>
> -bash-3.2$ smbclient -L server -N
> Anonymous login successful
> Domain=[GARDEN] OS=[Unix] Server=[Samba 3.0.37]
>
> Sharename Type Comment
> --------- ---- -------
> test Disk For testing only, please
> IPC$ IPC IPC Service (Samba 3.0.37)
> ...
>
> To resume my problem, i can not connect to a samba server from a
> client
> located on another subnet.
> Thank for your help.
>
> Julien
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba