FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 17th, 2003, 12:48 PM
robando robando is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 11 robando User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
VSFTP question

I have set up VSFTP on my Redhat 8 box. I've gotten the jist of how it works except for one thing. I've noticed that most sites allow you to, and even prefer for you to, connect using "passive transfer". For some reason my site does not like this. In order for my VSFTP server to be usable you must turn Passive Transfer off. I want my site to comply to the standards out there so I want to allow people to connect using "Passive Transfer". I don't even know what it does...can somebody please enlighten me?

thanks in advance,

--rO

Reply With Quote
  #2  
Old March 18th, 2003, 12:05 AM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Most people don't know either. There are three major types of FTP transfer: binary, ASCII, and passive. Few people actually choose which method to use; relying upon their FTP client to choose the best method. I don't really know the differences between the methods, and I wouldn't worry about it right now; I've only seen one or two instances where a particular product installation requested you to use Passive mode.

Reply With Quote
  #3  
Old March 18th, 2003, 12:22 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
This is only partly right.
There is two types of data streams: Binary and Ascii.
There is two types of ways the data stream is established: Active and passive.

Active FTP says that the client connects to the server on the control port (20) and the server back-connects to the client for the data stream.
In passive FTP, the client does initiate both connections, the server only tells it where it should connect to. This way, a firewall can be in between client and server protecting the client from being connected to

Ascii/Binary is another story.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #4  
Old March 18th, 2003, 12:27 AM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Oops, sorry. I don't really use that sort of info, so I usually forget it, or garble it.

Reply With Quote
  #5  
Old March 18th, 2003, 12:33 AM
robando robando is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 11 robando User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks so much for the clarification...it really does clear things up a bit.

I am more interested in finding out how to set my server up so that the client can use passive transfers as the default. I don't want to have to tell my clients to turn passive transfers off.

Anybody have any ideas?

--rO

Reply With Quote
  #6  
Old March 18th, 2003, 12:39 AM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I don't think they will. If they use FTP clients that are up-to-date, they should automatically detect that you won't accept passive and use active by default. Depends upon the FTP client, though. I don't use VSFTP, so I'm sorry I can't help any further

Reply With Quote
  #7  
Old March 18th, 2003, 12:44 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Me neither (using it)... If it is really a configuration issue, i canīt help anymore.

There is only one "generic" thing left: Are you using a firewall on the server? Then you need to activate the ftp-data port (20) too and allow incoming connections on it. (active and passive are switched opposite from the serverīs point of view).
Also you need to setup your server to always use ftp-data port for incoming connections. By default, afaik, ftp servers choose arbitrary ports.

... mttatkns, i am using this stuff quite seldomly too. You can tell from that i switched the portnumbers for ftp and ftp-data in my first post ftp control port is 21 of course!

Reply With Quote
  #8  
Old March 18th, 2003, 12:46 AM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Quote:
Originally posted by M.Hirsch
You can tell from that i switched the portnumbers for ftp and ftp-data in my first post ftp control port is 21 of course!
I was wondering about that... lol

Reply With Quote
  #9  
Old March 19th, 2003, 06:27 PM
robando robando is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 11 robando User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks for all the help. I figured out my problem. Since the client sends requests on "HIGH" port numbers I had to have those port numbers forwarded to my FTP server on my Router. I'm just curious if anybody knows the exact range of ports used for Passive mode transfers.

--rO

Reply With Quote
  #10  
Old March 19th, 2003, 08:20 PM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Not quite what ur looking for, but this is a list of all tcp/udp services and what ports they run on

Reply With Quote
  #11  
Old February 16th, 2004, 10:17 AM
einstein einstein is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Ontario, Canada
Posts: 1 einstein User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to einstein Send a message via AIM to einstein Send a message via MSN to einstein
Passive vs. Active FTP

As already said, allowing passive FTP lets people visiting download files without having to reconfigure their firewall, so it makes it easier for the vast majority. Of course all the users have to do on the client end is to open up their firewall to allow incoming data on port 20.

Using passive FTP is easier but the downside is that it's a bigger security risk since more ports are opened up on your side. How much of a bigger risk, I can't say. You also have to configure the vsftpd.conf file to allow for passive transfers.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > VSFTP question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway