Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-09-2005, 10:52 PM
|
#1
|
Member
Registered: Aug 2003
Posts: 834
Rep:
|
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?
|
|
|
11-10-2005, 12:27 AM
|
#2
|
Member
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827
Rep:
|
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.
|
|
|
11-10-2005, 05:38 AM
|
#3
|
Senior Member
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291
Rep:
|
run nfs or samba to mount shares and access that way.
|
|
|
11-10-2005, 08:30 AM
|
#4
|
LQ Newbie
Registered: May 2002
Distribution: Fedora 3-6 & RH 7.3-9, RH ES3-4
Posts: 26
Rep:
|
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.
|
|
|
11-10-2005, 07:48 PM
|
#5
|
Member
Registered: Aug 2003
Posts: 834
Original Poster
Rep:
|
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.
|
|
|
11-10-2005, 08:18 PM
|
#6
|
Member
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835
Rep:
|
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.
|
|
|
11-10-2005, 08:31 PM
|
#7
|
Member
Registered: Aug 2003
Posts: 834
Original Poster
Rep:
|
Oh, I see. Also, is there a higher risk of being cracked/hacked if I network these 2 machines through my router?
Thanks.
|
|
|
11-10-2005, 11:32 PM
|
#8
|
Member
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827
Rep:
|
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.
|
|
|
11-11-2005, 09:32 AM
|
#9
|
Member
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835
Rep:
|
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.
|
|
|
11-11-2005, 06:18 PM
|
#10
|
Senior Member
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291
Rep:
|
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
|
|
|
11-27-2005, 07:59 AM
|
#11
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
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".
|
|
|
All times are GMT -5. The time now is 06:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|