LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-22-2005, 07:06 PM   #1
grenier
Member
 
Registered: Jun 2004
Posts: 46

Rep: Reputation: 16
Samba, NFS and two boxes under Mandriva with a dsl-504t


So here is the situation :
I have an ADSL modem/router (the dsl-504t from DLink). Two computer are connected to it throught ethernet. The first (I'll call it A) runs under Mandriva LE 2005 RC2, the second one (B) is with Mandriva LE 2005. With the former, everything works just fine, whereas the later will access the internet only with apps that do not use IPV6 (I've had to deactivate in firefox - but not if I wanted to reach the router config page). It also appears to be somewhat slow, but it might be just me.

I've tried to setup a shared folder (the folder is on A, to be reached by B) either through NFS or Samba, but no luck. When I explore the network, nothing appears as a NFS shared folder. If I do it with Samba, it does appear, and I can set everything up; but I can't mount it. If I try it as a user (which I authorised), I get :

ERROR: Unable to open credentials file!

And if I do it as root, I have :

Error connecting to 82.101.8.42 (Connection refused)
1943: Connection to A failed
SMB connection failed


So it appears that for some reason ( I'm guessing the router is somehow at fault), the samba request gets redirected to this address (which I don't know, though I may ping).

If anybody has any insight ?..

 
Old 05-23-2005, 12:27 PM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Well, assuming both of your computer are on a local network, why do you want to access your share trought the internet (82.101.8.42 is a "public" internet address)?
A LOT of ISP are blocking Samba port in order to protect their customer against cracker and worms. Sharing your hdd over the net is NOT a good idea... Still, if you want to do so (and become eventually a warez server full of worms) remember you have to edit your /etc/samba/smb.conf to accept connection from the internet (there is a line "allow host"), this is obliviously not permitted by default.

About NFS. NFS uses senseless bloated middle-age communication, openning random port of both side (client and server) and it handles NATing very bad. Long ago, there was an option in NFS that would allow you to share over the web (web or net? dont remember) but this was know to be really broken and unsafe. I haven't heard from it since a loong time, I doubt you want to use it (but you could probably find some old documentation about it).
 
Old 05-25-2005, 02:55 AM   #3
grenier
Member
 
Registered: Jun 2004
Posts: 46

Original Poster
Rep: Reputation: 16
Actually, I don't want to share through the internet. The thing is, for some reason one of the computers ( client ? server ?) tries to find this credential file by going to this address. I have no idea why.

I suppose the router has some responsabilities in this, but there were a way to explicitely tell samba where to look for it (I've yet to find anything sifting throuht the doc).
 
Old 05-25-2005, 11:05 AM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
why dont you just use your internal ip address (the 192.168.xx or the 10.x.x.x ranges) instead of a hostname (assuming you use hostname)?
 
Old 05-27-2005, 07:20 AM   #5
grenier
Member
 
Registered: Jun 2004
Posts: 46

Original Poster
Rep: Reputation: 16
I don't. That is the problem.
 
Old 05-27-2005, 01:12 PM   #6
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
eh?
well, then use internal (private) ip address? Dont your interfaces already have one? You can use DSL even if your network card don't have ip (the public "internet" ip is assigned to a "fake" interface called ppp0 usually), but it's usually a good idea to set one anyways, as in that case you will need it.
To show your network configuration, type : /sbin/ifconfig. If you want to change it on the fly, try /sbin/ifconfig eth0 192.168.0.X (or whatever ip you want to use) at root. But these change will vanish at reboot, if you don't want to set it each time you boot up, you have to set it "somewhere" (where "somewhere" depend on your distro... I don't know Mandriva at all but there should be some kind of wizard to set it up... in worst case I can point you some "generic" location)
 
Old 03-29-2006, 06:18 AM   #7
jmbc
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
May be not a config problem

The problem is probably not at your part, but at your provider.
If you ping an unknow domain, you'd got that again (82.x.x.x address) given by your provider DNS ?
I have the same on a mail server, correctly configured, just used locally, not using samba. Something wrong happens with names resolution in postfix and gets this buggy IP address.
My solution was to tune the name resolution by finding first what wrong name was asked (local.local in my case) and putting it in the /etc/hosts file with a 127.0.0.1 address.
Additionally, may I suggest to Half_Elf to read what is exposed before to answer beside ?
So long,
jm
 
Old 03-29-2006, 07:21 AM   #8
Habu
Member
 
Registered: Apr 2005
Location: Malaysia
Distribution: Fedora, Suse
Posts: 108

Rep: Reputation: 15
Let's try to get things clear...

Internet connection is handled by the dsl router, which does nat, so internal machines are just connected via lan, with the router acting as gateway.

So each client in the internal network has a private ip (10.x.x.x or 192.168.x.x).

Let's say computer A has ip 192.168.0.2, and computer B has ip 192.168.0.3, and the router has ip 192.168.0.1

Now assuming you've set up the samba server correctly on computer A, you should be able to connect to 192.168.0.2 from computer B. Try the command
Code:
smbclient -L 192.168.0.2
and that should be it, right?i'm assuming a lot in the stuff above, but it should help point out where the problem lies. you can tell us where this scenario is different from yours.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 10.1 And A DLink DSL-504T browney_wigan Linux - Networking 2 09-05-2006 05:44 PM
Networking 2 linux boxes with NFS?? ludwig W SUSE / openSUSE 4 10-16-2005 03:09 PM
2wire dsl boxes supported? voteforpedro8 Linux - Wireless Networking 6 07-29-2005 09:01 PM
NFS problem networking 2 RH9 boxes rblampain Linux - Networking 11 10-25-2004 12:05 AM
DSL-504T Router and Suse 9.1 Geordie Linux - Networking 9 09-24-2004 08:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration