fix fail2ban issue if nginx not installed yet
This commit is contained in:
parent
ddfd6710c2
commit
fce79f8cf9
36
README.md
36
README.md
|
@ -13,6 +13,8 @@
|
|||
|
||||
----
|
||||
|
||||
All Instructions are available on the [repository Github page}(https://virtubox.github.io/ubuntu-nginx-web-server/)
|
||||
|
||||
Configuration files with comments and informations available by following the link **source**
|
||||
|
||||
## Initial configuration
|
||||
|
@ -49,23 +51,6 @@ WARNING : SSH Configuration with root login allowed with ed25519 & ECDSA SSH key
|
|||
wget -O /etc/ssh/sshd_config https://raw.githubusercontent.com/VirtuBox/ubuntu-nginx-web-server/master/etc/ssh/sshd_config
|
||||
```
|
||||
|
||||
**Custom jails for fail2ban**
|
||||
|
||||
* wordpress bruteforce
|
||||
* ssh
|
||||
* recidive (after 3 bans)
|
||||
* backend http auth
|
||||
* nginx bad bots
|
||||
|
||||
```
|
||||
wget -O /etc/fail2ban/filter.d/ddos.conf https://raw.githubusercontent.com/VirtuBox/ubuntu-nginx-web-server/master/etc/fail2ban/filter.d/ddos.conf
|
||||
wget -O /etc/fail2ban/filter.d/ee-wordpress.conf https://raw.githubusercontent.com/VirtuBox/ubuntu-nginx-web-server/master/etc/fail2ban/filter.d/ee-wordpress.conf
|
||||
wget -O /etc/fail2ban/jail.d/custom.conf https://raw.githubusercontent.com/VirtuBox/ubuntu-nginx-web-server/master/etc/fail2ban/jail.d/custom.conf
|
||||
wget -O /etc/fail2ban/jail.d/ddos.conf https://raw.githubusercontent.com/VirtuBox/ubuntu-nginx-web-server/master/etc/fail2ban/jail.d/ddos.conf
|
||||
|
||||
fail2ban-client reload
|
||||
```
|
||||
|
||||
**UFW** Instructions available in [VirtuBox Knowledgebase](https://kb.virtubox.net/knowledgebase/ufw-iptables-firewall-configuration-made-easier/)
|
||||
|
||||
```
|
||||
|
@ -133,6 +118,23 @@ sudo -u www-data composer update -d /var/www/22222/htdocs/db/pma/
|
|||
usermod -s /bin/bash www-data
|
||||
```
|
||||
|
||||
**Custom jails for fail2ban**
|
||||
|
||||
* wordpress bruteforce
|
||||
* ssh
|
||||
* recidive (after 3 bans)
|
||||
* backend http auth
|
||||
* nginx bad bots
|
||||
|
||||
```
|
||||
wget -O /etc/fail2ban/filter.d/ddos.conf https://raw.githubusercontent.com/VirtuBox/ubuntu-nginx-web-server/master/etc/fail2ban/filter.d/ddos.conf
|
||||
wget -O /etc/fail2ban/filter.d/ee-wordpress.conf https://raw.githubusercontent.com/VirtuBox/ubuntu-nginx-web-server/master/etc/fail2ban/filter.d/ee-wordpress.conf
|
||||
wget -O /etc/fail2ban/jail.d/custom.conf https://raw.githubusercontent.com/VirtuBox/ubuntu-nginx-web-server/master/etc/fail2ban/jail.d/custom.conf
|
||||
wget -O /etc/fail2ban/jail.d/ddos.conf https://raw.githubusercontent.com/VirtuBox/ubuntu-nginx-web-server/master/etc/fail2ban/jail.d/ddos.conf
|
||||
|
||||
fail2ban-client reload
|
||||
```
|
||||
|
||||
## PHP 7.1 & 7.2 Setup
|
||||
|
||||
**Install php7.1-fpm & php7.2-fpm**
|
||||
|
|
|
@ -108,6 +108,10 @@ sudo apt install mariadb-server
|
|||
```
|
||||
wget -qO ee rt.cx/ee && bash ee
|
||||
```
|
||||
**enable ee bash_completion**
|
||||
```
|
||||
source /etc/bash_completion.d/ee_auto.rc
|
||||
```
|
||||
**Install Nginx, php5.6, php7.0, postfix, redis and configure EE backend**
|
||||
```
|
||||
ee stack install
|
||||
|
|
Loading…
Reference in New Issue