Update ReadMe.md
This commit is contained in:
parent
e4b2c6901a
commit
267607fb4a
26
ReadMe.md
26
ReadMe.md
@ -1 +1,25 @@
|
||||
Test
|
||||
### Prerequisites
|
||||
1. NFT
|
||||
2. Redis
|
||||
|
||||
### How to Run
|
||||
```cd /opt```
|
||||
```git clone https://git.poster.place/verita84/firewall```
|
||||
|
||||
### Configure Redis Schema
|
||||
```bash firewall.sh import-db```
|
||||
|
||||
### Configure firewall.sh
|
||||
* Edit the ports to open
|
||||
* Modify NGINX_ACCESS to your NGINX config file
|
||||
|
||||
### Enable SystemD
|
||||
```cp firewall.service /etc/systemd/system```
|
||||
```systemctl enable --now firewall```
|
||||
|
||||
### Add Detection by the Minute via Cron
|
||||
```
|
||||
*/1 * * * * bash /opt/firewall/firewall.sh attacker-protection
|
||||
*/5 * * * * bash /opt/firewall/firewall.sh forgive
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user