![]() |
Optware.Proftpd HistoryHide minor edits - Show changes to markup July 27, 2007, at 10:38 PM
by -- Managed Hosting, Colocation and Data Center Services by victoryushchenkonashpresudent ... July 20, 2007, at 07:30 PM
by -- removed false wikilinks
Changed line 37 from:
to:
Changed lines 111-112 from:
to:
July 16, 2007, at 09:08 PM
by --
Changed lines 111-112 from:
to:
May 17, 2007, at 07:12 PM
by --
Changed line 37 from:
to:
May 17, 2007, at 07:10 PM
by --
Changed lines 36-37 from:
to:
May 17, 2007, at 07:10 PM
by --
Changed lines 36-38 from:
NB: The default config is for use with xinetd. To use the standalone server, change line 7 in to:
May 17, 2007, at 07:09 PM
by --
Deleted line 36:
Added line 38:
May 17, 2007, at 07:08 PM
by --
Added lines 37-38:
NB: The default config is for use with xinetd. To use the standalone server, change line 7 in April 14, 2007, at 01:50 AM
by -- warning at top
Added lines 7-8:
Warning! You could seriously screw up your slug installing this. Do it with caution and backup/image your drive first! I spent days trying to clean up the mess! --AlienzFebruary 25, 2007, at 10:02 PM
by -- SSL/TLS script changed - ref. recent news group postings
Changed lines 287-290 from:
to:
Changed lines 301-302 from:
to:
February 25, 2007, at 10:00 PM
by -- SSL/TLS script changed - ref. recent news group postings
Changed line 281 from:
to:
Changed line 286 from:
to:
Changed lines 288-290 from:
to:
February 25, 2007, at 09:37 PM
by -- SSL/TLS script changed - ref. recent news group postings
Changed lines 272-273 from:
Using a Unix compatable text editor insert the following script section into the proftpd configuration file to:
Using a Linux compatable text editor insert the following script section into the proftpd configuration file Added lines 280-283:
Changed lines 287-290 from:
TLSRequired? off
to:
TLSRequired? ctrl
Changed line 300 from:
to:
Changed lines 310-321 from:
Note that the above script includes a modification ( The three possible TLSprotocol settings are :-
All use of SSLv2 is disabled. RobHam to:
Note that all use of SSLv2 is disabled by default with ProFTPD. RobHam - modified Feb 2007 December 11, 2006, at 06:33 PM
by -- Expanded the note regarding [=SSL3=] and [=TLS1=], TLS script modified
Changed lines 304-307 from:
Note that the above script includes a modification ( The three possible protocol settings are :- to:
Note that the above script includes a modification ( The three possible TLSprotocol settings are :- December 11, 2006, at 11:31 AM
by -- Expanded the note regarding [=SSL3=] and [=TLS1=], TLS script modified
Changed lines 304-305 from:
Note that the above script includes a modification ( to:
Note that the above script includes a modification ( Changed lines 308-313 from:
to:
All use of SSLv2 is disabled. December 11, 2006, at 11:26 AM
by -- Expanded the note regarding [=SSL3=] and [=TLS1=], TLS script modified
Changed lines 304-305 from:
Note that the above script includes a modification ( to:
Note that the above script includes a modification ( The three possible protocol settings are :- December 11, 2006, at 10:30 AM
by -- Expanded the note regarding [=SSL3=] and [=TLS1=], TLS script modified
Changed lines 304-305 from:
Note that the above script includes a modification ( to:
Note that the above script includes a modification ( Changed lines 312-313 from:
After making my proftpd require TLS and trying to connect to it using sftp (thanks for the tutorial RobHam) I kept getting the following error: to:
After making my proftpd require TLS and trying to connect to it using sftp I kept getting the following error: December 11, 2006, at 10:27 AM
by -- Expanded the note regarding [=SSL3=] and [=TLS1=], TLS script modified
Changed lines 304-305 from:
Note that the above script includes a modification ( to:
Note that the above script includes a modification ( December 11, 2006, at 10:19 AM
by -- Expanded the note regarding SSL3 and TLS1, TLS script modified.
Changed lines 280-281 from:
to:
Changed lines 304-305 from:
Note that some FTP clients that claim to support SSL seem to have problems connecting when server side SSL/TLS is enabled. If you experience problems where connections are rejected then a work around that works in most cases is to change the relevant line above to to:
Note that the above script includes a modification ( December 06, 2006, at 06:59 PM
by -- Note added regarding using the config line TLSProtocol SSLv23
Changed lines 304-305 from:
Note that some FTP clients that claim to support SSL do not fully support the TLS version 1 protocol. If you experience problems where connections are rejected then a workaround that works in most cases is to change the relevant line above to to:
Note that some FTP clients that claim to support SSL seem to have problems connecting when server side SSL/TLS is enabled. If you experience problems where connections are rejected then a work around that works in most cases is to change the relevant line above to December 06, 2006, at 05:47 PM
by -- Note added regarding using the config line TLSProtocol SSLv23
Added lines 304-305:
Note that some FTP clients that claim to support SSL do not fully support the TLS version 1 protocol. If you experience problems where connections are rejected then a workaround that works in most cases is to change the relevant line above to April 20, 2006, at 04:28 PM
by --
Changed lines 327-329 from:
-Mark to:
-Mark I also find use full information on th following website http://gentoo-wiki.com/HOWTO_ProFTPD January 06, 2006, at 03:34 AM
by -- tip on installing xinetd - doh
Changed lines 30-31 from:
to:
September 27, 2005, at 10:21 AM
by -- ps aux |grep xinet will show you the PID
Changed lines 29-30 from:
to:
September 15, 2005, at 04:56 AM
by --
Added lines 106-107:
September 01, 2005, at 03:41 PM
by -- Info on configuring encrypted sessions
Changed lines 47-48 from:
Bob_tm to:
Added lines 56-57:
ingeba Changed lines 108-109 from:
to:
Changed lines 116-117 from:
MasqueradeAddress your.domain.name.goes.here.com
to:
MasqueradeAddress your.domain.name.or.ip.address.goes.here
August 30, 2005, at 10:45 AM
by -- Info on spped improvements and standalone
Added lines 35-36:
NOTE: Experience shows that there is very little to gain performance-wise from running standalone. The gain from running from xinetd depends on the amount of time proftpd is in active use (the less it is in use, the more often more RAM is available to other apps). Added lines 49-56:
(:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) UseReverseDNS off IdentLookups off (:tableend:) August 07, 2005, at 09:37 PM
by -- Added info about large files
Changed lines 15-16 from:
to:
August 07, 2005, at 05:47 AM
by -- minor formatting change
Added lines 292-293:
Fix Received message too long ErrorsChanged lines 295-296 from:
Received message too long 458961211 to:
August 07, 2005, at 02:30 AM
by -- added sftp & bash fix info
Added lines 290-308:
After making my proftpd require TLS and trying to connect to it using sftp (thanks for the tutorial RobHam) I kept getting the following error: Received message too long 458961211 The reason that this happens is because my .bashrc displays information when I log on (because I installed bash and followed the bash tutorial to get a bunch of system stats when I log on). sftp is not expecting this information and dies with the above error message. To get rid of this message if you have to add the following to your .bashrc: (:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) if [[ -n $PS1 ]]; then #.bashrc stuff that outputs text to the terminal fi (:tableend:) This lets you keep your text output when you log on, which I like, but still allows sftp login. -Mark May 23, 2005, at 04:44 PM
by -- Tip 1 amended to reflect better unslung ver 3.x and 4.x
Changed lines 48-49 from:
to:
Suggest changing to : <Anonymous /public>
Note - for unslung version 3.x users suggest changing to :
<Anonymous /share/hdd/data/public>
May 22, 2005, at 10:32 PM
by -- Added info on encrypted FTP and NAT
Changed lines 91-92 from:
to:
Added lines 107-108:
Note: Since SSL/TLS encrypts the control channel, NAT routers cannot read it to manage incoming TCP connection automatically. If you are behind a NAT router (usually on a 10.*.*.* or 192.168.*.* network), follow tip 4. May 22, 2005, at 08:08 PM
by -- Another slight improvement to the Proftpd SSL/TLS instructions
Changed lines 105-106 from:
How to configure Proftpd for SSL/TSL authentication/encryptionto:
How to configure Proftpd for SSL/TLS authentication/encryptionChanged line 109 from:
to:
Changed lines 112-114 from:
to:
Added line 176:
Changed line 222 from:
2. Generate a self signed root certificate and copy the root certificate to folder /opt/etc/ftpd/\\ to:
2. Generate a self signed root certificate (expiry set to 5 years but can be changed) and copy the root certificate to folder /opt/etc/ftpd/\\ Changed line 229 from:
If you want to remove the passphrase from the server key, use: -\\ to:
If you want to remove the passphrase from the server key (there is no real need for a password here so you will probably want to remove it), use: -\\ May 22, 2005, at 07:48 PM
by --
Added lines 278-279:
Change the May 22, 2005, at 07:44 PM
by --
Changed lines 271-272 from:
to:
May 22, 2005, at 07:42 PM
by --
Changed line 258 from:
to:
Changed line 270 from:
to:
May 22, 2005, at 07:40 PM
by -- very slight tidy up to the SSL/TSL instructions
Changed lines 259-260 from:
to:
Changed lines 271-272 from:
to:
May 20, 2005, at 04:23 PM
by --
Changed line 176 from:
default_days = 365 to:
default_days = 1825 May 20, 2005, at 04:20 PM
by --
Added lines 114-116:
MethodMay 20, 2005, at 04:18 PM
by -- Added instructions to enable SSL/TSL encription
Added lines 103-273:
How to configure Proftpd for SSL/TSL authentication/encryptionThe following list of instructions is largely based on Enabling HTTPS for Apache. The method involves: -
Login as user Move to the new folder You will now need to create a signing script by copying the following scipt section into a new file called sign.sh using a Unix compatable text editor. Store the script in the above folder. sign.sh(:table border=0 width=100% bgcolor=#eeeeff:) (:cell:)
#!/bin/sh
##
## sign.sh -- Sign a SSL Certificate Request (CSR)
## Copyright (c) 1998-2001 Ralf S. Engelschall, All Rights Reserved.
##
# argument line handling
CSR=$1
if [ $# -ne 1 ]; then
echo "Usage: sign.sign <whatever>.csr"; exit 1
fi
if [ ! -f $CSR ]; then
echo "CSR not found: $CSR"; exit 1
fi
case $CSR in
*.csr ) CERT="`echo $CSR | sed -e 's/\.csr/.crt/'`" ;;
* ) CERT="$CSR.crt" ;;
esac
# make sure environment exists
if [ ! -d ca.db.certs ]; then
mkdir ca.db.certs
fi
if [ ! -f ca.db.serial ]; then
echo '01' >ca.db.serial
fi
if [ ! -f ca.db.index ]; then
cp /dev/null ca.db.index
fi
# create an own SSLeay config
cat >ca.config <<EOT
[ ca ]
default_ca = CA_own
[ CA_own ]
dir = .
certs = \$dir
new_certs_dir = \$dir/ca.db.certs
database = \$dir/ca.db.index
serial = \$dir/ca.db.serial
RANDFILE = \$dir/ca.db.rand
certificate = \$dir/ca.crt
private_key = \$dir/ca.key
unique_subject = no
default_days = 365
default_crl_days = 30
default_md = md5
preserve = no
policy = policy_anything
[ policy_anything ]
countryName = optional
stateOrProvinceName = optional
localityName = optional
organizationName = optional
organizationalUnitName = optional
commonName = supplied
emailAddress = optional
EOT
# sign the certificate
echo "CA signing: $CSR -> $CERT:"
openssl ca -config ca.config -out $CERT -infiles $CSR
echo "CA verifying: $CERT <-> CA cert"
openssl verify -CAfile ca.crt $CERT
# cleanup after SSLeay
rm -f ca.config
rm -f ca.db.serial.old
rm -f ca.db.index.old
# die gracefully
exit 0
(:tableend:) Make sign.sh owned by root and executable Creating the Keys and Certificates1. Create a new root key for your own Certificate Authority (CA) If you want to remove the passphrase from the root key, use: - 2. Generate a self signed root certificate and copy the root certificate to folder /opt/etc/ftpd/ 3. Create the server key If you want to remove the passphrase from the server key, use: - Copy the server key to folder /opt/etc/ftpd/ 4. Prepare a certificate signing request (CSR). 5. Sign your server key using the previously saved script file 6. Copy the server certificate to folder /opt/etc/ftpd/ Modify proftpd.confUsing a Unix compatable text editor insert the following script section into the proftpd configuration file (:table border=0 width=100% bgcolor=#eeeeff:) (:cell:) <IfModule mod_tls.c> TLSEngine on TLSLog /opt/var/proftpd/tls.log TLSProtocol TLSv1 # Clients are required to use FTP over TLS when talking to this server. # off - clients can connect using insecure FTP or secure FTP/SSL # on - clients can only connect using secure FTP/SSL TLSRequired off # Server's certificate TLSRSACertificateFile /opt/etc/ftpd/server.crt TLSRSACertificateKeyFile /opt/etc/ftpd/server.key # CA the server trusts TLSCACertificateFile /opt/etc/ftpd/ca.crt # Authenticate clients that want to use FTP over TLS? # on - client certificates are required TLSVerifyClient off </IfModule> (:tableend:) May 06, 2005, at 03:44 PM
by --
Changed lines 48-49 from:
to:
May 06, 2005, at 03:37 PM
by --
Changed lines 21-22 from:
The possibilities for configuration are endless. Go to the Proftpd website and edit to:
The possibilities for configuration are endless. Go to the Proftpd website and edit Added lines 46-47:
Changed lines 50-51 from:
to:
Changed lines 75-76 from:
to:
Added lines 89-102:
1. Using a text editor such as vi, add the following line to the top section of the configuration file /opt/etc/proftpd.conf
PassivePorts 50000 50019
2. (Optional) Proftpd has the ability to display a domain name during the client login process rather than just the internal IP, handy if you are accessing using Dyndns or a similar service etc. Add the following line to the top section as above.
MasqueradeAddress your.domain.name.goes.here.com
3. In your router setup, forward port 21 and the port range 50000 to 50019 to your NSLU2 internal IP address (default for NSLU2 is 192.168.1.77).
April 17, 2005, at 08:27 AM
by --
Changed lines 39-40 from:
to:
Changed line 73 from:
to:
Changed lines 79-80 from:
Any manual changes to this file will not withstand a re-boot or withstand any changes made to some of the web configuration pages. ProFTPD? does have a workable work around for this by configuring a manually maintained dedicated passwd file just for use by ProFTPD?, suggested location for such a file is a disk directory such as
/opt/etc/.
to:
Any manual changes to this file will not withstand a re-boot or withstand any changes made to some of the web configuration pages. Proftpd does have a workable work around for this by configuring a manually maintained dedicated passwd file just for use by Proftpd, suggested location for such a file is a disk directory such as
/opt/etc/.
Changed line 82 from:
to:
Changed lines 85-86 from:
to:
RobHam April 16, 2005, at 11:18 PM
by --
Added lines 72-84:
Change example:
someuser:hashedpw:2000:501:::/dev/null
to
someuser:hashedpw:2000:501::/share/hdd/data/someuser:/dev/null
Any manual changes to this file will not withstand a re-boot or withstand any changes made to some of the web configuration pages. ProFTPD? does have a workable work around for this by configuring a manually maintained dedicated passwd file just for use by ProFTPD?, suggested location for such a file is a disk directory such as /opt/etc/.
So...
Added line 86:
April 16, 2005, at 10:13 PM
by --
Changed lines 46-48 from:
to:
Changed line 51 from:
(:table border=0 width=100% bcolor=#eeeeff:) to:
(:table border=0 width=100% bgcolor=#eeeeff:) April 16, 2005, at 10:01 PM
by --
Changed lines 46-66 from:
# /opt/etc/ftpusers
# Inclusion of 'root' here has limited functionality, to disable
root
# Including 'ftp' here will disable anonymous login
ftp
# Other default users
bin
lp
mail
nobody
ourtelnetrescueuser
guest
admin
# End of file
to:
(:table border=0 width=100% bcolor=#eeeeff:) (:cell:) # /opt/etc/ftpusers # Inclusion of 'root' here has limited functionality, to disable # 'root' access use the proftpd.conf directive - RootLogin off root # Including 'ftp' here will disable anonymous login ftp # Other default users bin lp mail nobody ourtelnetrescueuser guest admin # End of file (:tableend:) April 14, 2005, at 09:36 PM
by --
Changed line 46 from:
to:
Deleted line 47:
Changed line 49 from:
to:
Changed line 52 from:
# Inclusion of 'root' here has no functionality, to disable
to:
# Inclusion of 'root' here has limited functionality, to disable
April 12, 2005, at 07:09 PM
by --
Changed line 50 from:
to:
Changed line 53 from:
# inclusion of 'root' here has no functionality, to disable
to:
# Inclusion of 'root' here has no functionality, to disable
Changed line 56 from:
# including 'ftp' here will disable anonymous login
to:
# Including 'ftp' here will disable anonymous login
Changed line 58 from:
# other default users
to:
# Other default users
Added line 66:
# End of file
April 12, 2005, at 07:04 PM
by --
Added lines 49-68:
# /opt/etc/ftpusers
# inclusion of 'root' here has no functionality, to disable
root
# including 'ftp' here will disable anonymous login
ftp
# other default users
bin
lp
mail
nobody
ourtelnetrescueuser
guest
admin
April 12, 2005, at 06:40 PM
by --
Changed lines 46-47 from:
<Anonymous ~ftp>. to:
Changed lines 48-49 from:
Suggest changing to <Anonymous /share/hdd/data/public>. to:
April 12, 2005, at 06:37 PM
by --
Added lines 45-51:
<Anonymous ~ftp>. Suggest changing to <Anonymous /share/hdd/data/public>. April 11, 2005, at 12:09 PM
by --
Changed line 42 from:
to:
April 11, 2005, at 12:08 PM
by --
Changed line 42 from:
to:
April 11, 2005, at 12:08 PM
by --
Changed line 21 from:
The possibilities for configuration are endless. Go to the Proftpd website and edit to:
The possibilities for configuration are endless. Go to the Proftpd website and edit Added lines 40-42:
General
March 25, 2005, at 12:10 AM
by --
Changed line 31 from:
to:
March 25, 2005, at 12:09 AM
by --
Changed line 21 from:
The possibilities for configuration are endless. Go to the Proftpd website and edit to:
The possibilities for configuration are endless. Go to the Proftpd website and edit Changed line 39 from:
to:
March 25, 2005, at 12:09 AM
by --
Changed line 21 from:
The possibilities for configuration are endless. Go to the Proftpd website and edit to:
The possibilities for configuration are endless. Go to the Proftpd website and edit Added line 39:
March 24, 2005, at 06:24 PM
by --
Changed line 21 from:
The possibilities for configuration are endless. Go to the Proftpd website and edit to:
The possibilities for configuration are endless. Go to the Proftpd website and edit Deleted line 24:
Chose your mode of running it (one of the below). Changed lines 26-40 from:
With Linksys inetd
With Inetutils inetd
With xinetd (recommended)
to:
With xinetdSince the proftpd package installs a Changed lines 31-32 from:
to:
Changed line 36 from:
Let the trouble commence. to:
As standaloneAdded line 38:
February 03, 2005, at 06:08 PM
by --
Added line 13:
February 03, 2005, at 05:40 PM
by --
Changed lines 1-52 from:
Describe {{Proftpd}} here. to:
ProftpdWhy proftpdCheck out http://www.proftpd.org
How to installInstall the package: How to configureThe possibilities for configuration are endless. Go to the Proftpd website and edit How to activateChose your mode of running it (one of the below). With Linksys inetd
With Inetutils inetd
With xinetd (recommended)
As standalone server
TroubleshootingLet the trouble commence. Bob_tm |