dpkg-reconfigure dash nano /etc/hosts nano /etc/hostname apt-get install -y nmap ntp ntpdate nmon iftop pydf sl cowsay telnet finger fingerd postfix postfix-mysql postfix-doc mariadb-client mariadb-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d dovecot-mysql dovecot-sieve dovecot-lmtpd sudo mysql_secure_installation nano /etc/postfix/master.cf service postfix restart nano /etc/mysql/mariadb.conf.d/50-server.cnf echo "update mysql.user set plugin = 'mysql_native_password' where user='root';" | mysql -u root nano /etc/mysql/debian.cnf nano /etc/security/limits.conf mkdir -p /etc/systemd/system/mysql.service.d/ nano /etc/systemd/system/mysql.service.d/limits.conf systemctl daemon-reload service mysql restart netstat -tap | grep mysql >ports apt-get install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl libdbd-mysql-perl postgrey -y service spamassassin stop systemctl disable spamassassin apt-get -y install apache2 apache2-doc apache2-utils libapache2-mod-php php7.0 php7.0-common php7.0-gd php7.0-mysql php7.0-imap phpmyadmin php7.0-cli php7.0-cgi libapache2-mod-fcgid apache2-suexec-pristine php-pear php7.0-mcrypt mcrypt imagemagick libruby libapache2-mod-python php7.0-curl php7.0-intl php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl memcached php-memcache php-imagick php-gettext php7.0-zip php7.0-mbstring memcached libapache2-mod-passenger php7.0-soap -y a2enmod suexec rewrite ssl actions include dav_fs dav auth_digest cgi headers nano /etc/apache2/conf-available/httpoxy.conf a2enconf httpoxy service apache2 restart apt install -y certbot php7.0-fpm a2enmod actions proxy_fcgi alias service apache2 restart apt-get -y install php7.0-opcache php-apcu apt-get install pure-ftpd-common pure-ftpd-mysql quota quotatool openssl dhparam -out /etc/ssl/private/pure-ftpd-dhparams.pem 2048 nano /etc/default/pure-ftpd-common echo 1 > /etc/pure-ftpd/conf/TLS mkdir -p /etc/ssl/private/ openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem chmod 600 /etc/ssl/private/pure-ftpd.pem service pure-ftpd-mysql restart nano /etc/fstab mount -o remount / quotacheck -avugm quotaon -avug apt-get install bind9 dnsutils haveged webalizer awstats geoip-database libclass-dbi-mysql-perl libtimedate-perl nano /etc/cron.d/awstats apt-get install build-essential autoconf automake libtool flex bison debhelper binutils devscripts fakeroot cd /tmp wget http://olivier.sessink.nl/jailkit/jailkit-2.20.tar.gz tar xvfz jailkit-2.20.tar.gz cd jailkit-2.20 echo 5 > debian/compat ./debian/rules binary cd .. dpkg -i jailkit_2.20-1_*.deb rm -rf jailkit-2.20* apt-get install fail2ban nano /etc/fail2ban/jail.local service fail2ban restart apt-get install ufw roundcube roundcube-core roundcube-mysql roundcube-plugins nano /etc/roundcube/config.inc.php nano /etc/apache2/conf-enabled/roundcube.conf service apache2 reload cd /tmp wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz tar xfz ISPConfig-3-stable.tar.gz cd ispconfig3_install/install/ php -q install.php nmap 182.54.165.98 nmap 182.54.165.99 shutdown -r