LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-23-2009, 09:05 AM   #1
Munkee
LQ Newbie
 
Registered: Apr 2009
Location: Utah, USA
Posts: 8

Rep: Reputation: 0
Smile Logwatch Question


Hey all, I apologize for my noobish with Linux, but I was wondering if there is a site that I can find that will teach me how to read Logwatchs I have been searching for one and cannot seem to find one with some basic explanations of what each thing is telling me.
Thank you in advance for your help!
 
Old 04-23-2009, 09:13 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
What do yo want to know ?
The configuration of logwatch, or the output from the logfiles ?
 
Old 04-23-2009, 09:20 AM   #3
Munkee
LQ Newbie
 
Registered: Apr 2009
Location: Utah, USA
Posts: 8

Original Poster
Rep: Reputation: 0
the output, I am just learning all this and kinda lucked into a job where the guy just had a couple days to train me, so now its all on my own study to try and figure everything out
 
Old 04-23-2009, 12:06 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Just look at the output, and if you don't understand, ask
 
Old 04-23-2009, 01:59 PM   #5
Munkee
LQ Newbie
 
Registered: Apr 2009
Location: Utah, USA
Posts: 8

Original Poster
Rep: Reputation: 0
sshd:
Authentication Failures:
root (58.180.42.111): 36 Time(s)
unknown (58.180.42.111): 8 Time(s)
Invalid Users:
Unknown Account: 8 Time(s)

su:
Sessions Opened:
(uid=0) -> postgres: 288 Time(s)
(uid=0) -> beedigit: 26 Time(s)
(uid=0) -> harrdun: 16 Time(s)
(uid=0) -> axnt: 8 Time(s)
(uid=0) -> loganutahapartments: 8 Time(s)
(uid=0) -> reesefarms: 8 Time(s)
(uid=0) -> rivermillcabinets: 8 Time(s)
(uid=0) -> tadspad: 8 Time(s)


---------------------- pam_unix End -------------------------


--------------------- postfix Begin ------------------------



25652 bytes transferred
5 messages sent
5 messages removed from queue

Connections lost:
Connection lost while CONNECT : 2 Time(s)
Connection lost while EHLO : 1 Time(s)


**Unmatched Entries**

NOQUEUE: reject: RCPT from radarstair.com[207.29.228.248]: 554 5.7.1 <renaegle@cv-w.com>: Relay access denied; from=<Casey@radarstair.com> to=<renaegle@cv-w.com> proto=SMTP helo=<radarstair.com>
NOQUEUE: reject: RCPT from unknown[74.50.100.10]: 550 5.1.1 <rrfarms4@reesefarms.com>: Recipient address rejected: User unknown in virtual alias table; from=<access.warrantyv@towerhob.com> to=<rrfarms4@reesefarms.com> proto=SMTP helo=<mx1.towerhob.com>

---------------------- postfix End -------------------------


--------------------- SSHD Begin ------------------------


Failed logins from:
58.180.42.111: 36 times

Illegal users from:
58.180.42.111: 8 times

Users logging in through sshd:
root:
x.x.x.x: 1 time


Received disconnect:
11: Bye Bye : 44 Time(s)

**Unmatched Entries**
pam_succeed_if(sshd:auth): error retrieving information about user oracle : 8 time(s)

---------------------- SSHD End -------------------------


-----------------------------------------------------------------------------------
Okay there is most of what i don't understand, I understand someone is pinging the address, and from what i understand illegal doesn't mean they got in, so what exactly does that one mean? sorry I know its long but any help would be appreciated, thank you for your time by the way
 
Old 04-23-2009, 02:00 PM   #6
Munkee
LQ Newbie
 
Registered: Apr 2009
Location: Utah, USA
Posts: 8

Original Poster
Rep: Reputation: 0
Sorry there is also this stuff

--------------------- pam_unix Begin ------------------------

gnome-screensaver:
Unknown Entries:
auth could not identify password for [smitnich]: 1 Time(s)

proftpd:
Unknown Entries:
authentication failure; logname= uid=0 euid=0 tty=/dev/ftpd24432 ruser=adm rhost=::ffff:82.114.78.98 user=adm: 3 Time(s)
authentication failure; logname= uid=0 euid=0 tty=/dev/ftpd24557 ruser=bin rhost=::ffff:82.114.78.98 user=bin: 3 Time(s)

smtp:
Unknown Entries:
authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= : 4 Time(s)
check pass; user unknown: 4 Time(s)

--------------------------------------
--------------------- sasl auth daemon Begin ------------------------



**Unmatched Entries**

pam_unix(smtp:auth): check pass; user unknown
pam_unix(smtp:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
pam_succeed_if(smtp:auth): error retrieving information about user test
pam_unix(smtp:auth): check pass; user unknown
pam_unix(smtp:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
pam_succeed_if(smtp:auth): error retrieving information about user admin
pam_unix(smtp:auth): check pass; user unknown
pam_unix(smtp:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
pam_succeed_if(smtp:auth): error retrieving information about user info
pam_unix(smtp:auth): check pass; user unknown
pam_unix(smtp:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=
pam_succeed_if(smtp:auth): error retrieving information about user sales

---------------------- sasl auth daemon End -------------------------



Again ty
 
Old 04-23-2009, 02:07 PM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
sshd:
Authentication Failures:
root (58.180.42.111): 36 Time(s)
unknown (58.180.42.111): 8 Time(s)
Invalid Users:
Unknown Account: 8 Time(s)
Someone tries to login via ssh, but the username and/or password is incorrect
This happens often if you have ssh running.
You can use fail2ban or iptables to block the IP after X tries

Quote:
NOQUEUE: reject: RCPT from radarstair.com[207.29.228.248]: 554 5.7.1 <renaegle@cv-w.com>: Relay access denied; from=<Casey@radarstair.com> to=<renaegle@cv-w.com> proto=SMTP helo=<radarstair.com>
NOQUEUE: reject: RCPT from unknown[74.50.100.10]: 550 5.1.1 <rrfarms4@reesefarms.com>: Recipient address rejected: User unknown in virtual alias table; from=<access.warrantyv@towerhob.com> to=<rrfarms4@reesefarms.com> proto=SMTP helo=<mx1.towerhob.com>
Here someone is trying to use your SMTP to sent spam
But it is denied, which is good.

Quote:
Users logging in through sshd:
root:
x.x.x.x: 1 time
I hope this was you logging in.
I would suggest to disable root logins via SSH, log in as user, and then su to become root.
 
Old 04-23-2009, 02:18 PM   #8
Munkee
LQ Newbie
 
Registered: Apr 2009
Location: Utah, USA
Posts: 8

Original Poster
Rep: Reputation: 0
Ah! that makes sense, thank you so much for the quick responses too, I will try that fail2ban and see if I cant manage to make it work right lol.
and ya that was me, that is how I was taught how to login, but I will do it the other way now, as Id rather be more safe and not screw anything up over here
 
Old 04-23-2009, 02:18 PM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
These are all attempts to login via SSH or FTP on your server.

It is important to have good passwords, and to change them on a regular base.
I would suggest to install fail2ban to block these IP's after 3 failed logins.

If you run services to the outside, you will continue having these attempts, but you can limit them.
Make sure you have a good firewall, and make sure the services are configured properly.

Are all these services needed?

I don't know which distribution you are using, but perhaps you can look at some sites to secure your server.

A good start would be
http://www.linuxsecurity.com/
 
Old 04-23-2009, 02:20 PM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
and ya that was me, that is how I was taught how to login, but I will do it the other way now, as Id rather be more safe and not screw anything up over here
you should disable root login via ssh
http://www.howtogeek.com/howto/linux...ogin-on-linux/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LogWatch Help richinsc Linux - Server 4 04-07-2007 11:15 AM
Logwatch & Postfix Question msjenkins Linux - General 0 11-27-2005 08:04 PM
logwatch I keep getting this help please lildrummerboy Linux - Newbie 1 08-01-2004 01:57 PM
logwatch lildrummerboy Linux - Newbie 1 07-29-2004 07:38 PM
LogWatch ftp question prozach Linux - Security 0 02-26-2002 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration