Skip to content

Commit f28bd41

Browse files
committed
Updating README with OSSEC info.
1 parent 2100c02 commit f28bd41

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,35 @@ Here are a few ideas:
4646
`sed -i "s/#long_query_time/long_query_time/g" /etc/mysql/my.cnf`
4747
* Set query cache type: `sed -i "s/query_cache_size = 16M/query_cache_size = 16M\nquery_cache_type = 1\n/g" /etc/mysql/my.cnf`
4848
* Enable table cache: `sed -i "s/#table_cache/table_cache/g" /etc/mysql/my.cnf`
49+
4950
* Keep an eye on your logs and adjust mod_security / fail2ban accordingly
51+
5052
* Keep things up to date. For example `sudo aptitude safe-upgrade`
53+
5154
* Add a new database, with a corresponding user, with [add-db.sh](https://github.com/betweenbrain/ubuntu-web-server-build-script/blob/master/admin-scripts/add-db.sh)
55+
5256
* Add email aliases to postfix:
5357
* `sudo nano /etc/postfix/virtual`
5458
* Add: `alias [email protected]`
5559
* `sudo postmap /etc/postfix/virtual`
5660
* `sudo service postfix reload`
61+
5762
* Make sure that you own your bash history file `sudo chown you:you ~/.bash_history`
5863

64+
* Install and configure <a href="http://www.ossec.net/">OSSEC</a>
65+
- sources http://ubuntuforums.org/showthread.php?t=213445 | http://ossec.net/ossec-docs/OSSEC-book-Ch02_SA240.pdf | http://devio.us/~ddp/ossec/docs/manual/installation/
66+
* `sudo apt-get install build-essential`
67+
* `wget http://www.ossec.net/files/ossec-hids-latest.tar.gz`
68+
* `wget http://www.ossec.net/files/ossec-hids-2.6_checksum.txt` <= if latest is version 2.6, see http://www.ossec.net/main/downloads
69+
* `cat ossec-hids-2.6_checksum.txt`
70+
* `md5sum ossec-hids-2.6_checksum.txt`
71+
* `sha1sum ossec-hids-2.6_checksum.txt`
72+
* `tar -zxvf ossec-hids-*.tar.gz`
73+
* `cd ossec-hids-*`
74+
* `./install.sh`
75+
76+
- OSSEC documentation: http://www.ossec.net/main/manual
77+
- conf file at /var/ossec/etc/ossec.conf
5978

6079
Warranty, guarantees, culpability...etc.
6180
----------------

0 commit comments

Comments
 (0)