LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-09-2005, 10:52 PM   #1
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Rep: Reputation: 30
Is it possible to move files through my router?


I have 2 slack boxes (different versions) connected to a router, to the internet. Is there a way to move files from one system to the other? Somehow networking them so I can move files and control the other computer from one?
 
Old 11-10-2005, 12:27 AM   #2
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
yes. Execute on both machines as root just changing the ip address:

Code:
/sbin/ifconfig eth0 add 192.168.0.2 # .3 for other machine
and a virtual interface called eth0:0 is created. Now you can use the new LAN ip address to ftp or scp or whatever way you want to use to transfer the files at a decent speed (~8 megs per sec on a 100meg cable, router and eth-card, alot less if some of them is only 10 meg, and alot more if all are gigabit stuff)

The ip will stay untill it gets taken off (shutdown will do that) so youll have to add the line to /etc/rc.d/rc.local if you want it to be permanent.
 
Old 11-10-2005, 05:38 AM   #3
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
run nfs or samba to mount shares and access that way.
 
Old 11-10-2005, 08:30 AM   #4
akneppar
LQ Newbie
 
Registered: May 2002
Distribution: Fedora 3-6 & RH 7.3-9, RH ES3-4
Posts: 26

Rep: Reputation: 15
I normally run samba as my first choice:

www.samba.org

As a matter of fact, as I type this I'm migrating about 120gigs from a USB drive to one of my development servers. I find smb works so well when transfering from Linux ot Windows and vice versa that I'm using it from a Fedora Core 4 machine to an older Red Hat enterprise development server.
 
Old 11-10-2005, 07:48 PM   #5
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
Ok, Ill try these suggestions. I thought samba was only for going from Linux to Windows, Is that not true? Is it for any networking between different OS`s? Thanks.
 
Old 11-10-2005, 08:18 PM   #6
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Samba is the linux way of pretending to be a windows computer on a network.

If I understand correctly, the SMB protocol is specified by Microsoft, but any computer that can abide by the protocol can use it.
 
Old 11-10-2005, 08:31 PM   #7
M$ISBS
Member
 
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
Oh, I see. Also, is there a higher risk of being cracked/hacked if I network these 2 machines through my router?
Thanks.
 
Old 11-10-2005, 11:32 PM   #8
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
if you connect them as a LAN, remember to firewall also the eth0:0 inteface. So, if one machine falls into wrong hands, the other wont fall with it. Thats about all the risks I can think of.

If you decide to use nfs, never forget to umount berore shutting down the serving machine.. thats the biggest risk of nfs.. (;

It wont realy increase your risks, youll still have to firewall them anyways.
 
Old 11-11-2005, 09:32 AM   #9
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Most home routers today have a firewall built in. Use ifconfig to check your ipaddresses. If they start with 172.16 or 192.168 or 10, then you are not at risk of a direct assault anyway. It is, of course, a good idea to have the firewall properly set up on each of your boxes regardless.
 
Old 11-11-2005, 06:18 PM   #10
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Quote:
Originally posted by gd2shoe
Samba is the linux way of pretending to be a windows computer on a network.

If I understand correctly, the SMB protocol is specified by Microsoft, but any computer that can abide by the protocol can use it.
Here's a site with an explaination of the smb protocol
 
Old 11-27-2005, 07:59 AM   #11
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Another option is Midnight Commander (mc).

You can "fish" in one pane of the display to any other box you can ssh to. You can then do normal file operations between panes, except that it's between hosts.

If you're lucky, you can even have the two panes viewing two different remote hosts -- even as I type I am logged into an ftp server I help admin & my other local desktop. I am, right now, copying 5 small files from the ftp server to the other desktop. This is not very efficient, nor something you would want to do every day; but it CAN be done.

The local to remote mode is normal & very useful, & it is as secure as ssh. The remote to remote through local mode is useful (only) if LOCAL can ssh into both remotes, but neither can ssh to the other. Otherwise, the efficient thing to do would be to ssh to REMOTE-1 & then mc "fish" from there to REMOTE-2.

Read the on-line help in mc for the details.... It's under "Virtual File System" -- "FIle transfer over SHell filesystem".
 
  


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
Recursively move files michaelsanford Linux - General 5 02-17-2016 01:24 AM
cannot using FTP move command to move files adrianmak Linux - Networking 4 04-21-2009 12:01 PM
the best way to move files around..... thegreggwong Linux - Software 5 08-28-2004 05:20 PM
move files to new disk bosewicht Linux - Newbie 1 06-09-2004 12:51 AM
Lost files during move. spacedoubtman General 3 03-12-2004 03:00 AM

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

All times are GMT -5. The time now is 07:26 AM.

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