Remove unused cdc. reaction.yml is for now the reference
Waiting for a proper Readme
This commit is contained in:
		
							
								
								
									
										32
									
								
								cdc.md
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								cdc.md
									
									
									
									
									
								
							@ -1,32 +0,0 @@
 | 
				
			|||||||
# Serveur
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
`reactiond <FILEPATH>`
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Avec un défaut à `/etc/reaction/reactiond.conf`
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
```yaml
 | 
					 | 
				
			||||||
definitions:
 | 
					 | 
				
			||||||
  - &iptablesban iptables -I reaction 1 -s <ip> -j block
 | 
					 | 
				
			||||||
  - &iptablesunban iptables -D reaction 1 -s <ip> -j block
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
regexes:
 | 
					 | 
				
			||||||
  ip: '(([0-9]{1,3}\.){3}[0-9]{1,3})|([0-9a-fA-F:]{2,90})'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
streams:
 | 
					 | 
				
			||||||
  nextcloud:
 | 
					 | 
				
			||||||
    cmd: journalctl -fu phpfpm-nextcloud.service
 | 
					 | 
				
			||||||
    filters:
 | 
					 | 
				
			||||||
      failed-login:
 | 
					 | 
				
			||||||
        regex:
 | 
					 | 
				
			||||||
          - '"message":"Login failed: .\+ (Remote IP: <ip>)"'
 | 
					 | 
				
			||||||
        retry: 3
 | 
					 | 
				
			||||||
        retry-period: 1h
 | 
					 | 
				
			||||||
        actions:
 | 
					 | 
				
			||||||
          ban:
 | 
					 | 
				
			||||||
            cmd: *iptablesban
 | 
					 | 
				
			||||||
          unban:
 | 
					 | 
				
			||||||
            cmd: *iptablesunban 
 | 
					 | 
				
			||||||
            after: 1h
 | 
					 | 
				
			||||||
```
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
reactionc: le client
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user