View Full Version : [ubuntu] Server Security
ironic1122
February 20th, 2009, 12:55 AM
How can i have logs sent to me on a daily base and how would i be able to have the server tell me if random user/passwords ( bruteforce ) is happening
cariboo
February 20th, 2009, 01:10 AM
If you have exim and logwatch setup, you should get a daily email from your server.
Jim
bodhi.zazen
February 20th, 2009, 01:47 AM
How can i have logs sent to me on a daily base and how would i be able to have the server tell me if random user/passwords ( bruteforce ) is happening
You can do a few simple things to limit brute force attacks.
Most important, enforce strong passwords. Then ...
1. Change the ssh default port from 22 to almost any alternate.
2. Use keys.
3. Install denyhosts, fail2ban, or take a look at a few (dare I say simple) iptables rules.
http://bodhizazen.net/beginners/Firewall/
All 3 of those are proactive rather then reactive and all 3 will, IMO, be superior to watching your logs.
ironic1122
February 20th, 2009, 02:10 AM
/usr/local/etc/logcheck.sh: 269: mail: not found i installed exim4 and its not mailing nothing out
bodhi.zazen
February 20th, 2009, 02:22 AM
/usr/local/etc/logcheck.sh: 269: mail: not found i installed exim4 and its not mailing nothing out
If you are looking for additional suggestions, may I suggest logwatch ?
http://ubuntu-tutorials.com/2008/11/13/monitor-system-logs-with-logwatch/
ironic1122
February 20th, 2009, 02:31 AM
sorry that link isnt working :(
bodhi.zazen
February 20th, 2009, 03:15 AM
Odd, try the site later perhaps ???
Google ??
http://beginlinux.wordpress.com/2009/01/09/logwatch-fix-on-ubuntu-810/
ushills
February 20th, 2009, 02:09 PM
If you are problems I wrote a guide here using gmail's smtp servers.
http://www.ushills.co.uk/2009/02/ssmtp-and-logwatch-email-logs-from.html
cariboo
February 20th, 2009, 08:02 PM
You have to configure exim4, you have to tell it where to send the mail. To configure exim4 at the prompt type:
sudo dpkg-reconfigure exim4-config
You should get a page that looks like the screen-shot.
Jim
ironic1122
February 21st, 2009, 06:49 AM
thanks for all the fast reply's
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.