1827458 Members
4730 Online
109965 Solutions
New Discussion

Re: samba remote problem

 
rajendran
Occasional Advisor

samba remote problem

Hello,
Can any one help me on my samba 2.04,my samba is working fine on
my local lan that use 64.0.0.The problem is i cannot se my
samba server on the remote side which are using 68.0.0, 66.0.0, 69.0.0
and 65.0.0 but from this remote i can telnet to the HP server which is
using 64.0.0.100. I have attached my smb.conf file. Can any one
tell me where the problem. Please help me on this.
Thanks
rajen
see world is wonderfull
7 REPLIES 7
Darren Prior
Honored Contributor

Re: samba remote problem

Hi Rajen,

This could be the problem:
[global]
.
.
.
hosts allow = 64.0.

From O'Reilly's Using Samba book, "hosts allow option specifies the machines that have permission to access shares on the Samba server...."

You may wish to include your other networks in this option, or maybe even open it to all networks (depending on your network security.)

regards,

Darren.
Calm down. It's only ones and zeros...
Stefan Schulz
Honored Contributor

Re: samba remote problem

Hi Rajen,

your hosts allow = 64.0. setting is the problem. you defenately allow only Computers with an IP 64.0.x.x the access to your samba server.

Change your hosts allow statement to :

hosts allow = 64.0., 65.0., 66.0., 68.0., 69.0.

This will do the trick after restarting your samba daemons.

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
rajendran
Occasional Advisor

Re: samba remote problem

hello,Stefan & darren
Thanks for your response, i have added the
hosts and i am facing another problem, i am
unable to see my local also.I have
this error on my log.nmb.nmb.Can you please
advice me how trouble shoot this problem, my
etc/services i have swat 901/tcp netbios-ssn 139/tcp and netbios-ns 137/udp. When i do
a netstat -an it seems like some one is using
139 and 137.How can i over come this problem.
Thanks
rajen.
see world is wonderfull
U.SivaKumar_2
Honored Contributor

Re: samba remote problem

Hi,
Problem with this line.

interfaces = 64.0.0./255.0.0.0

Give the exact ip address of the interface you
want the samba to listen.

eg.-

interfaces = 64.0.0.1/255.0.0.0

where 64.0.0.1 is the LAN card IP address of that server.

If you omit that data completely , samba will
listen on all interfaces in the server.

regards,
U.SivaKumar



Innovations are made when conventions are broken
Darren Prior
Honored Contributor

Re: samba remote problem

Hi Rajen,

I suggest you check out p105 of O'Reilly's Using Samba book which discusses the interfaces option.

You should also consider the following - has Samba been working successfully before on this server? If it has, what has recently changed on the networking side as that is where your queries have been centred. If Samba hasn't worked on this server before I'd question why the smb.conf file has been setup in this way.

As an aside you have also assigned the guest account twice in your smb.conf. It's worth running testparms to check which one Samba will actually use.

regards,

Darren.
Calm down. It's only ones and zeros...

Re: samba remote problem

Problem is two fold.
Chnage you smb.conf file to include all the networks that you require to access your samba server.
I.e. hosts allow = 64., 65., 66., 68., 69.

Also your interfaces line soes not been to be included by default but its ok to have it. but chnage it to.

interfaces = /
The light at the end of tunnel has been switched off until further notice!
rajendran
Occasional Advisor

Re: samba remote problem

hai,
Thanks a lot guys my samba is working,now
i use 64.,65.,68.,69.and i use the interface
with full path that is 64.0.0.100/255.0.0.0
Thanks
rajen
see world is wonderfull