본문 바로가기

SUBS 성대방송국

pure-ftpd 설정

OPENSSL 먼저 설치해야됨! 

######################
#  pure-ftpd install
######################


cd /usr/local/src

wget ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.20.tar.bz2

bzip2 -dc pure-ftpd-1.0.20.tar.bz2 | tar xvf -

cd pure-ftpd-1.0.20

./configure --with-tls --with-altlog --with-certile=/etc/ssl/private/pure-ftpd.pem --with-rfc2640 --with-bonjour --with-welcomemsg --with-sysquotas --with-ratios


make

make install

### To create a self-signed certificate, you can use the following commands :

mkdir -p /etc/ssl/private

openssl req -x509 -nodes -newkey rsa:1024 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem


Generating a 1024 bit RSA private key
..................................................................................................++++++
.........++++++
writing new private key to '/etc/ssl/private/pure-ftpd.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]:KR
State or Province Name (full name) [Berkshire]:Seoul
Locality Name (eg, city) [Newbury]:Seoul
Organization Name (eg, company) [My Company Ltd]:
Organizational Unit Name (eg, section) []:OPR
Common Name (eg, your name or your server's hostname) []:

Email Address []:

chmod 600 /etc/ssl/private/*.pem

/usr/local/sbin/pure-ftpd -Y 1 -S 0.0.0.0,5050 -p 50000:50400 -P 61.250.88.22 &