LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-27-2005, 05:06 PM   #1
sovietpower
Member
 
Registered: Jun 2003
Distribution: Slackware64 14.1 and -current
Posts: 209

Rep: Reputation: 30
questionable content in /var/log/messages


I went to vnc to my server and it didn't work. So I sshed into to see what was going on. I found out that my webserver isnt running and some other stuff.
I checked /var/log/messages and found some weird stuff.

May 25 22:14:09 kremlin syslogd 1.4.1: restart
May 25 22:14:29 kremlin sshd[605]: Server listening on 0.0.0.0 port 1025.
May 25 22:18:34 kremlin sshd[638]: Bad protocol version identification '\005' from 71.109.65.130
May 25 22:34:09 kremlin -- MARK --
May 25 22:46:35 kremlin sshd[641]: Bad protocol version identification '\005' from 71.109.65.130
May 25 23:14:09 kremlin -- MARK --
May 25 23:34:09 kremlin -- MARK --
May 25 23:54:09 kremlin -- MARK --
May 26 00:14:09 kremlin -- MARK --
May 26 00:21:11 kremlin sshd[697]: Bad protocol version identification '\005' from 71.109.71.94
May 26 00:34:09 kremlin -- MARK --
May 26 00:39:39 kremlin sshd[699]: Bad protocol version identification '\005' from 71.1.248.237
May 26 00:54:09 kremlin -- MARK --
May 26 01:14:09 kremlin -- MARK --
May 26 01:34:09 kremlin -- MARK --
May 26 01:54:09 kremlin -- MARK --
May 26 02:14:09 kremlin -- MARK --
May 26 02:15:55 kremlin sshd[758]: Bad protocol version identification '\005' from 71.109.12.69
May 26 02:34:09 kremlin -- MARK --
May 26 02:54:09 kremlin -- MARK --
May 26 03:14:09 kremlin -- MARK --
May 26 03:34:09 kremlin -- MARK --
May 26 03:54:09 kremlin -- MARK --
May 26 04:14:09 kremlin -- MARK --
May 26 04:34:09 kremlin -- MARK --
May 26 04:54:09 kremlin -- MARK --
May 26 05:14:09 kremlin -- MARK --
May 26 05:16:07 kremlin sshd[893]: Bad protocol version identification '\005' from 71.109.29.168
May 26 05:34:09 kremlin -- MARK --
May 26 05:54:09 kremlin -- MARK --
May 26 06:14:09 kremlin -- MARK --
May 26 06:34:09 kremlin -- MARK --
May 26 06:54:09 kremlin -- MARK --

As you may see that my ssh server runs on 1025 it is on purpose. I am wondering why the --MARK-- s are there. The restart of the machine may have been by me but I don't remember. From what I understand the '\005' is command trying to be executed and obviously the ip is remote. Also in the log it shows when I connected with ssh and says I connect from a different port like in the 3000s why is that when I specified to connect on port 1025?

Thx - sovietpower
 
Old 05-28-2005, 01:08 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Re: questionable content in /var/log/messages

As you may see that my ssh server runs on 1025 it is on purpose. I am wondering why the --MARK-- s are there.
The "MARK" message is simply a message automatically logged every 20 minutes. That way if syslog dies for some reason, you'll see a gap in the "MARK" messages. In systems that don't use that feature, it can be very hard to tell if logging has failed just by looking at the logs.

From what I understand the '\005' is command trying to be executed and obviously the ip is remote.
Not entirely sure what that message is, but I wouldn't be surprised if it's a result of port scanning. A number of scanners like nmap will do service interrogation to identify daemon versions and services running on alternative ports. If the scanner tried a protocol (like nfs), it could cause those errors. There are also a number of trojans that use that as a default port, so it could also be someone trying to find compromised machines. It might be helpful to run tcpdump for a while and capture some packets in order to more accurately identify the cause.

Also in the log it shows when I connected with ssh and says I connect from a different port like in the 3000s why is that when I specified to connect on port 1025?
Could you post an example? I believe you're seeing the source port that you are connecting with, not the destination port. The source port will be variable and is usually >1023 (the actual ranges used are set in /proc/sys/net/ipv4/).
 
  


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
what does messages suppressed in /var/log/messages mean saavik Linux - Networking 2 05-07-2008 02:31 PM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
From where am i getting error messages to /var/log/messages? prabhuacsp Programming 3 02-16-2005 08:59 AM
From where am i getting error messages to /var/log/messages? prabhuacsp Linux - Networking 1 02-16-2005 12:34 AM
/var/log/messages full of these messages. Should I be concerned? mdavis Linux - Security 5 04-16-2004 10:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:36 AM.

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