NSLU2-Linux
view · edit · print · history

HowTo.SetupFXPonVSFTPD History

Hide minor edits - Show changes to markup

January 09, 2007, at 10:26 AM by Michael Perrin --
Changed lines 12-15 from:

pasv_min_port=2001

pasv_max_port=2021

to:
  • pasv_min_port=2001
  • pasv_max_port=2021
Changed lines 17-20 from:

pasv_promiscuous=YES

port_promiscuous=YES

to:
  • pasv_promiscuous=YES
  • port_promiscuous=YES
January 08, 2007, at 05:17 PM by MichaelPerrin --
Added line 11:
Added line 13:
Added line 17:
Added line 19:
January 08, 2007, at 05:17 PM by MichaelPerrin --
Deleted line 10:

(#Passive mode ports)

Deleted line 14:

(#FXP enable)

January 07, 2007, at 07:34 PM by MichaelPerrin --
January 07, 2007, at 07:33 PM by MichaelPerrin --
Changed line 11 from:
  1. Passive mode ports
to:

(#Passive mode ports)

Changed line 16 from:
  1. FXP enable
to:

(#FXP enable)

January 07, 2007, at 07:29 PM by MichaelPerrin -- Editing the conf file to allow FXP in VSFTPD
Added lines 1-20:

After setting up VSFTP i wanted to support FXP. It took some tweaking to get this working and eventually these settings seemed to work. (Admins - i guess this might be better off in the VSFTPD page rather than here - please feel free to move it).

By default most ftp connections use passive mode - which means the server needs not only port 21 open, but a group of ports (usually over 1024) open for data connections... i usually keep about 20 ports open for an ftp expecting 2 simultaneous downloaders...

Anyways, you can either change your ftp client so it connects to the server in ACTIVE mode - but you'll have to make sure everyone does that.....or else you'll configure your server and vsftpd for passive connections, open a set of ports on your firewalls say from 2001 to 2021

(Obviously port forward these on your firewall to your Slug IP)

Add this to your /etc/vsftpd/vsftpd.conf

  1. Passive mode ports

pasv_min_port=2001 pasv_max_port=2021

You also need to add this if you're planning to use FXP with this server (server to server transfer)

  1. FXP enable

pasv_promiscuous=YES port_promiscuous=YES

I hope that helps somebody - it has worked for me. If this is unsecure at all please recommend any changes.

view · edit · print · history · Last edited by Michael Perrin.
Originally by MichaelPerrin.
Page last modified on January 09, 2007, at 10:26 AM