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 02-01-2008, 08:26 PM   #1
ezor
Member
 
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83

Rep: Reputation: 15
Need file transfer help


I have two computers, a Linux and a BSD box, behind a Linksys firewalled router. Want to transfer individual files or directories of files between them. Transfers to be done within the LAN. Windows is not involved, and will never want remote (WAN) access. If security is an issue, I can just switch off the cable modem during transfer.

Both machines can ping each other by IPaddress and by hostname. I have installed gftp on both boxes, but cannot connect from either machine to the other.

Thanks for any help.
 
Old 02-01-2008, 08:35 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Have you checked if your firewall is blocking port 21 (ftp)?
 
Old 02-01-2008, 09:21 PM   #3
ezor
Member
 
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by {BBI}Nexus{BBI} View Post
Have you checked if your firewall is blocking port 21 (ftp)?
The BSD box has no firewall installed. Following some Google instructions, I thought I had switched off the SuSe firewall, but in looking at chkconfig, I see it's still running. Can't figure out how to turn it off.
 
Old 02-01-2008, 09:26 PM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Is it based on iptables? Try

iptables -F
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
 
Old 02-01-2008, 09:41 PM   #5
ezor
Member
 
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by dive View Post
Is it based on iptables? Try

iptables -F
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P returns iptables v1.3.6
 
Old 02-01-2008, 10:14 PM   #6
ezor
Member
 
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83

Original Poster
Rep: Reputation: 15
Okay, SuSe firewall is turned off, no firewalls running on either computer. Only the router's firewall running. I have tried to connect using hostname as well as ipaddress, but neither machine can connect to the other. When gftp fails to connect, it returns connection refused. It seems to me that permissions need to be setup somehow.
 
Old 02-01-2008, 10:21 PM   #7
baldur_the_god
Member
 
Registered: Feb 2007
Posts: 54

Rep: Reputation: 15
just making sure

do you have them on the same workgroup or domain...you should be able to ping them even though they are not...you should not have to use an ftp program to do it...if I am understanding this you have two computers on the same network and want to transfer files over the network...if that is right, just use samba...

baldur

Last edited by acid_kewpie; 02-10-2008 at 09:30 AM.
 
Old 02-02-2008, 01:35 AM   #8
ezor
Member
 
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83

Original Poster
Rep: Reputation: 15
Well, live and learn. Neither of these computers is set up as an ftp server, so obviously an ftp client won't be able to connect. Both SuSe and FreeBSD have the vsftpd ftp server software available for installation. Hopefully, it will work within the LAN, and the router's ports, being stealthed, should keep intruders out.
 
Old 02-02-2008, 08:56 AM   #9
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Yes, having the server will help!

As long as you don't forward the WAN port 21 or 20 to the LAN machine runing vsftp, you won't be exposing yourself to the outside world, it will be contained within the LAN.

On the other hand, if either machine has sshd running, you don't even need vsftp, as the program scp is basically secure ftp done through an encrypted ssh session. For example, to transfer something I have on my work laptop to my home desktop, I just issue a command like:

Code:
scp /home/jim/some_important_file jim@192.168.68.103:/home/jim/work_crap/
with pre-shared ssh keys, you can avoid being prompted for a password, it just works after you approve it the first time.

And also, baldur_the_god, using samba to share files between *nix computers is ridiculous. Samba is a *nix attempt at windows networking. It works very well to share data with windows users who clearly can't remember even their login passwords, so couldn't possibly remember ftp passwords as well, but there are so many better choices for *nix sharing. Scp, ssh, ftp, nfs, the list goes on an on. What you've basically said is if two Frenchmen meet on the street, rather than conversing in French, they should speak English to one another. Now both men might know English rather well, but you're taking them away from their mother tongue to speak in something not as comfortable.

Peace,
JimBass
 
Old 02-03-2008, 12:28 AM   #10
ezor
Member
 
Registered: Mar 2006
Location: Toytown, NY
Distribution: Suse10.2 FreeBSD6.2
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by JimBass View Post
Yes, having the server will help!

As long as you don't forward the WAN port 21 or 20 to the LAN machine runing vsftp, you won't be exposing yourself to the outside world, it will be contained within the LAN.
Thanks for responding, JimBass.
I found out that switching the cable modem off kills everything. Doesn't work as a security measure. So, with ftp servers running, on each machine, I checked ports 20 & 21 (router) with Shields up, and they were both stealthed.

I'm using gftp for client on both boxes, and vsftpd for server on SuSe. FreeBSD didn't like vsftpd, so I'm using pure-ftpd there, and everything works.

Next learning project will be scp. Thanks again.
 
  


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
Gnome/Nautilus issues Beagle-Tracker, file transfer info, replace file info, popup. Mysticle31 Linux - Software 0 01-08-2008 05:30 PM
file transfer munna_dude Programming 34 04-05-2007 10:20 AM
transfer dvds from ogg file to vod file kingfish217217 Linux - Software 3 02-19-2007 06:19 PM
File Transfer ~P3~ Linux - Laptop and Netbook 1 05-19-2006 09:53 AM
File transfer Joe47 Linux - Newbie 2 02-09-2003 04:12 AM

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

All times are GMT -5. The time now is 10:14 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