LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-18-2010, 04:16 PM   #1
PhoenixAndThor
Member
 
Registered: Sep 2009
Location: Geogia, USA
Distribution: Ubuntu, Debian, Live CDs
Posts: 213

Rep: Reputation: 38
Laptop to Desktop: file sharing nightmare


One of the many things that annoys me about college is that they only each you the Windows way to do stuff. This may be a simple problem for many people, but for me, it's turned into a nightmare. First, my current setup:

Have a cable modem from my ISP connected to a wireless router.

Messed with DNS and reserved addresses for main desktop and a netbook, so now both computers will always get the same IP address, but I still have the option of letting friends connect to my network. Router has NAT and stateful firewall built in.

Wireless router secured with WPA2.

Main desktop was assembled from a barebones kit, running Xubuntu 9.10 (kicked SUSE to the curb, too bloated) firewall(fireHOL) fresh installed but not really configured (have not edited config file). This computer is connected directly with a CAT 5 cable.

Netbook is a Lenovo IdeaPad S10 now running Arch (yep, killed XP). Netbook also has FireHOL installed. This netbook is connected wirelessly (802.11g).

Right now, I can get both systems to ping each others IPs successfully, but not their hostnames (DNS, NIS setup?).

Problem: I want to set up the desktop to host a shared directory to sync files with the netbook. I would like this set up in such a way that:
1. The netbook has RW permissions to the shared folder
2. Only the netbook can connect to it.
3. FireHOL (installed on both systems) would still be able to protect both system if the firewall on the router was somehow compromised.
4. The shared folder will not accessible outside of the network (no SSH, VPN etc.)

On Windows, this is mostly a point and click procedure, but they never taught us how to set this up with pure *Nix systems. I have been at this for almost a week. I have messed with NFS, ufw, FTP, point to point, etc. and still can't get this set up the way I want. Thanks in advance.
 
Old 03-18-2010, 04:20 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
If you can't ping their hostnames then likely you're running into an issue with name resolution. A simple solution since it is only two machines is to put a host entry in each of the machines for the other.

I would suggest since you're using linux->linux that you use nfs. It's pretty easy to setup. We can help you with any problems you run into but we need to know what they are and at this point we have idea just that you haven't been able to get it to work. Post the configs you're using and how its failing and the messages you're getting when it does.
 
1 members found this post helpful.
Old 03-18-2010, 06:03 PM   #3
PhoenixAndThor
Member
 
Registered: Sep 2009
Location: Geogia, USA
Distribution: Ubuntu, Debian, Live CDs
Posts: 213

Original Poster
Rep: Reputation: 38
Sorry about that, got knocked offline for while. I thought about what you said and started messing with the hosts file on both computers, then the hosts.allow files. Now both computers can ping each other by name, but I still can't get them to share files. Here's what the hosts.allow file looks like on the Xubuntu desktop (hosting the shared folder):
#START
lockd: netbook: allow
rquoted: netbook: allow
mountd: netbook: allow
statd: netbook: allow
#END

"netbook" is netbook (hid the real hostname here for security). Now here's what the exports file looks like

#START
/media/NB-Share mini-me(rw,async,all_squash)
#END

The command that I try to use to mount the folder on Arch:

mount desktop:/media/NB-Share /var/NB-Share

With the above command, it seems to freeze and eventually spits out:

mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified

I tried the same command again as root (no sudo) and got the same result. The stall time here is about a minute.
 
Old 03-19-2010, 09:39 AM   #4
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
Is statd running on the local machine? Have you ensured that all the necessary daemons are running on the remote also?
 
1 members found this post helpful.
Old 03-19-2010, 11:14 AM   #5
PhoenixAndThor
Member
 
Registered: Sep 2009
Location: Geogia, USA
Distribution: Ubuntu, Debian, Live CDs
Posts: 213

Original Poster
Rep: Reputation: 38
Sorry for not posting back sooner. I actually fixed it by disabling firehol on both machines. You see, Xubuntu comes with a GUI for the sharing thing, but when that failed, I started running all over the place editing config files. For some reason, firehol settings are not taking on Arch, and they are forgotten with each reboot on Xubuntu.

So, yes, they can now share files, but they would be unprotected if my router was cracked. So now it comes down to finding a proper iptables/netfilter front end available on both distros that can be used with NFS. Why they don't cover this sort of thing in college, I'll never know. For quite a while, the only kind of firewalls I've ever had to set up were for keeping people out. Now I have to set one up let my netbook, and only my netbook, have access to the goodies on my desktop.

Last edited by PhoenixAndThor; 03-19-2010 at 11:15 AM.
 
  


Reply

Tags
home, netbook, networking, security


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
WinXP & Linux laptop file sharing thru USB? pwright2 Linux - Networking 3 12-04-2006 11:44 AM
File Sync between laptop and desktop IBall Linux - General 2 11-03-2005 06:06 AM
A local wireless network for sharing files (linux desktop+linux laptop+mac laptop) whyatt Linux - Wireless Networking 1 11-01-2005 03:17 PM
networking notebook to desktop file sharing linuxdork Linux - Networking 5 02-23-2005 12:58 PM
Mandrake 9.0 internet sharing nightmare RJL Linux - Networking 21 08-05-2003 10:17 AM


All times are GMT -5. The time now is 12:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration