VMware Images:
|
The Perfect Server - Ubuntu 12.04 LTS (Apache2, BIND, Dovecot, ISPConfig 3) - Page 5
16 Install PureFTPd And QuotaPureFTPd and quota can be installed with the following command: apt-get install pure-ftpd-common pure-ftpd-mysql quota quotatool Edit the file /etc/default/pure-ftpd-common... vi /etc/default/pure-ftpd-common ... and make sure that the start mode is set to standalone and set VIRTUALCHROOT=true:
Now we configure PureFTPd to allow FTP and TLS sessions. FTP is a very insecure protocol because all passwords and all data are transferred in clear text. By using TLS, the whole communication can be encrypted, thus making FTP much more secure. If you want to allow FTP and TLS sessions, run echo 1 > /etc/pure-ftpd/conf/TLS In order to use TLS, we must create an SSL certificate. I create it in /etc/ssl/private/, therefore I create that directory first: mkdir -p /etc/ssl/private/ Afterwards, we can generate the SSL certificate as follows: openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem Country Name (2 letter code) [AU]: <-- Enter your Country Name (e.g., "DE"). Change the permissions of the SSL certificate: chmod 600 /etc/ssl/private/pure-ftpd.pem Then restart PureFTPd: /etc/init.d/pure-ftpd-mysql restart Edit /etc/fstab. Mine looks like this (I added ,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 to the partition with the mount point /): vi /etc/fstab
To enable quota, run these commands: mount -o remount / quotacheck -avugm
17 Install BIND DNS ServerBIND can be installed as follows: apt-get install bind9 dnsutils
18 Install Vlogger, Webalizer, And AWstatsVlogger, webalizer, and AWstats can be installed as follows: apt-get install vlogger webalizer awstats geoip-database libclass-dbi-mysql-perl Open /etc/cron.d/awstats afterwards... vi /etc/cron.d/awstats ... and comment out everything in that file:
19 Install JailkitJailkit is needed only if you want to chroot SSH users. It can be installed as follows (important: Jailkit must be installed before ISPConfig - it cannot be installed afterwards!): apt-get install build-essential autoconf automake1.9 libtool flex bison debhelper binutils-gold cd /tmp You can now install the Jailkit .deb package as follows: cd ..
20 Install fail2banThis is optional but recommended, because the ISPConfig monitor tries to show the log: apt-get install fail2ban To make fail2ban monitor PureFTPd and Dovecot, create the file /etc/fail2ban/jail.local: vi /etc/fail2ban/jail.local
Then create the following two filter files: vi /etc/fail2ban/filter.d/pureftpd.conf
vi /etc/fail2ban/filter.d/dovecot-pop3imap.conf
Restart fail2ban afterwards: /etc/init.d/fail2ban restart
|



Recent comments
2 days 17 hours ago
3 days 2 hours ago
3 days 5 hours ago
3 days 6 hours ago
3 days 7 hours ago
3 days 9 hours ago
3 days 10 hours ago
3 days 12 hours ago
4 days 4 hours ago
4 days 4 hours ago