-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNotes-Hestia
53 lines (46 loc) · 1.42 KB
/
Notes-Hestia
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Hestia waiting cronjobs queue..
- nano /usr/local/hestia/data/queue/backup.pipe
------------------
How to change root user's email to gmail ?
-- sudo nano /etc/aliases
Add your email as..
-- root:[email protected]
-- sudo newaliases
-------------------
MySQL Date error, not empty etc error..
Add this into the file : '/etc/mysql/mariadb.cnf'
[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION;
-------------------
SSHD security settings:
sudo nano /etc/ssh/sshd_config
- Port 25000
#Set SSH client connection timeout. Below will check every 120 seconds, if not alive for 10 times, that session will be terminated
- ClientAliveInterval 120
- ClientAliveCountMax 10
-------------------
MALDET
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
cd /usr/src
tar -xvf maldetect-current.tar.gz
cd maldetect*
./install.sh
nano /usr/local/maldetect/conf.maldet
sudo apt-get update -y
sudo apt-get install -y inotify-tools
- email_alert="1"
- email_addr="root"
- quarantine_hits="1"
- quarantine_clean="1"
- quarantine_suspend_user="1"
- scan_clamscan="1"
- scan_ignore_root="0"
sudo service maldet restart
#### Testing maldet scan.
cd /home/demo
wget http://www.eicar.org/download/eicar.com
wget http://www.eicar.org/download/eicar.com.txt
wget http://www.eicar.org/download/eicarcom2.zip
maldet -a /home/demo/
#You should recvd a notify email on root@YourServer
-------------------