From e79ca699cb3df70472c783716d2b2fbdb9607d7a Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Mon, 21 Jan 2019 16:15:55 +0100 Subject: [PATCH] changed knockd timeout, added php7.0-imagick to lemp --- assets/knockd.conf | 16 +++++++++++++++- bin/lemp.sh | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/assets/knockd.conf b/assets/knockd.conf index 09500cd..2f11a12 100644 --- a/assets/knockd.conf +++ b/assets/knockd.conf @@ -1,3 +1,17 @@ +# claranet serveur +# [options] +# UseSyslog +# +# [Client] +# sequence = 5019,8599,4468 +# seq_timeout = 5 +# command = /sbin/iptables -I internet_inbound 1 -s %IP% -p tcp --match multiport --dports 22,21,40000:40200 -j ACCEPT +# tcpflags = syn +# cmd_timeout = 86400 +# stop_command = /sbin/iptables -D internet_inbound -s %IP% -p tcp --match multiport --dports 22,21,40000:40200 -j ACCEPT + + + [options] logfile = /var/log/knockd.log @@ -7,5 +21,5 @@ # TODO do not limit port 22 to the ip as it don't work with 4G connection start_command = ufw insert 1 allow from %IP% to any port 22 tcpflags = syn - cmd_timeout = 10 + cmd_timeout = 600 stop_command = ufw delete allow from %IP% to any port 22 diff --git a/bin/lemp.sh b/bin/lemp.sh index 33b481f..cebd43c 100755 --- a/bin/lemp.sh +++ b/bin/lemp.sh @@ -57,7 +57,7 @@ echo -e '\033[35m \033[0m' echo -e "\033[35;1mInstalling PHP 7.0 \033[0m" sleep 3 -apt-get --yes --force-yes install php7.0-fpm php7.0-mysql php7.0-opcache php7.0-curl php7.0-mbstring php7.0-zip php7.0-xml php7.0-gd php7.0-mcrypt php-memcached +apt-get --yes --force-yes install php7.0-fpm php7.0-mysql php7.0-opcache php7.0-curl php7.0-mbstring php7.0-zip php7.0-xml php7.0-gd php7.0-mcrypt php-memcached php7.0-imagick mv /etc/php/7.0/fpm/php.ini /etc/php/7.0/fpm/php.ini.back cp "$_assets"/php-fpm.ini /etc/php/7.0/fpm/php.ini