From: Julien VINCENT on 17 Jul 2010 04:30 Hello, i'm trying to setup a samba file server, but i need your advices. the goal of my setup is to share a folder from a linux server to windows clients (for the moment i do my tests using smbclient on linux hosts). The server and the client are on different subnets, but they can ping themselves. 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. 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(a)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(a)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(a)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(a)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(a)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
|
Pages: 1 Prev: [Samba] net ads join loses after reboot Next: File sharing and subnets |