User Tools

Site Tools


server_administration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
server_administration [2016/05/28 15:03]
sgripon [nmd]
server_administration [2016/12/28 12:06] (current)
sgripon [logwatch]
Line 118: Line 118:
 ===== nmd ===== ===== nmd =====
  
-No More DDOS (nmd) is a simple script that automatically ban ip when the number of connections exceed what is configured. See [[http://​us.informatiweb-pro.net/​system-admin/​linux/​17--debian-ubuntu-centos-block-ddos-attacks-with-no-more-ddos-formerly-ddos-deflate.html[nmd By Lionel Eppe]].+No More DDOS (nmd) is a simple script that automatically ban ip when the number of connections exceed what is configured. See http://​us.informatiweb-pro.net/​system-admin/​linux/​17--debian-ubuntu-centos-block-ddos-attacks-with-no-more-ddos-formerly-ddos-deflate.html. (By Lionel Eppe)
  
 I modified a little the script in order to use ufw to ban adresses. Also, there is an issue with the installed cron script: I modified a little the script in order to use ufw to ban adresses. Also, there is an issue with the installed cron script:
Line 182: Line 182:
 Logwatch can send you a formatted view of system logs every morning by email. It is usefull to check everyday the health of your server. Logwatch can send you a formatted view of system logs every morning by email. It is usefull to check everyday the health of your server.
  
-FIXME Add details here+First, copy default config file to change settings:
  
 +  sudo cp /​usr/​share/​logwatch/​default.conf/​logwatch.conf /​etc/​logwatch/​conf/​
 +
 +Then, to receive by email the report modify the cron job and add --mailto option :
 +
 +<file bash /​etc/​cron.daily/​00logwatch>​
 +#!/bin/bash
 +
 +#Check if removed-but-not-purged
 +test -x /​usr/​share/​logwatch/​scripts/​logwatch.pl || exit 0
 +
 +#execute
 +/​usr/​sbin/​logwatch --output mail --mailto my.email@domain.tld
 +
 +</​file>​
 +
 +===== Slow server diagnostic =====
 +
 +See a very good flow chart to help in slow server cases : http://​blog.scoutapp.com/​articles/​2014/​07/​31/​slow_server_flow_chart
  
 **Share this page:** **Share this page:**
server_administration.1464440630.txt.gz ยท Last modified: 2016/05/28 15:03 by sgripon