LinuxQuestions.org
Review your favorite Linux distribution.
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 09-03-2004, 04:01 PM   #1
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Rep: Reputation: 15
last -i shows ips that are not mine!!


I am very confused??? When I do a "last -i" on my ftp server I get this:

ftpuser ftpd6651 196.151.254.191 Fri Sep 3 10:46 - 11:01 (00:15)
ftpuser ftpd6631 196.161.254.191 Fri Sep 3 10:45 - 10:45 (00:00)
ftpuser ftpd5494 68.154.254.191 Fri Sep 3 10:03 - 10:03 (00:00)
ftpuser ftpd5493 196.154.254.191 Fri Sep 3 10:02 - 10:18 (00:15)
ftpuser ftpd5398 68.170.254.191 Fri Sep 3 09:59 - 09:59 (00:00)
ftpuser ftpd5338 68.168.254.191 Fri Sep 3 09:57 - 09:57 (00:00)
ftpuser ftpd5318 68.178.254.191 Fri Sep 3 09:55 - 09:56 (00:00)

The ip's in the third column are not even close to anything I use... I know, it looks like I have some unwanted guests but it gets weird. When I do just a "last" I get this output:

ftpuser ftpd6651 ws.mydomain.com Fri Sep 3 10:46 - 11:01 (00:15)
ftpuser ftpd6631 ws.mydomain.com Fri Sep 3 10:45 - 10:45 (00:00)
ftpuser ftpd5494 ws.mydomain.com Fri Sep 3 10:03 - 10:03 (00:00)
ftpuser ftpd5493 ws.mydomain.com Fri Sep 3 10:02 - 10:18 (00:15)
ftpuser ftpd5398 ws.mydomain.com Fri Sep 3 09:59 - 09:59 (00:00)
ftpuser ftpd5338 ws.mydomain.com Fri Sep 3 09:57 - 09:57 (00:00)
ftpuser ftpd5318 ws.mydomain.com Fri Sep 3 09:55 - 09:56 (00:00)

The domains in the third column are definately mine. Plus I know that the two top login entries are mine cause that is when I was testing them. What would cause the "last" command to record an ip that isn't mine. I ran a chkrootkit program and it did not find any things that looked strange (no alteration of the wtmp file). Also, the passwords I use for ftp are a combination of 14 characters containing numbers, letters and special characters.
 
Old 09-03-2004, 08:42 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
What version of Enterprise are you using?
 
Old 09-04-2004, 06:17 AM   #3
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
on last -i i get

"my user name" pts/3 0.0.0.0

while last gets the whole domain name right

 
Old 09-04-2004, 06:22 AM   #4
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
Re: last -i shows ips that are not mine!!

Quote:
Originally posted by linuxboy69


ftpuser ftpd6651 196.151.254.191 Fri Sep 3 10:46 - 11:01 (00:15)
ftpuser ftpd6631 196.161.254.191 Fri Sep 3 10:45 - 10:45 (00:00)
ftpuser ftpd5494 68.154.254.191 Fri Sep 3 10:03 - 10:03 (00:00)
ftpuser ftpd5493 196.154.254.191 Fri Sep 3 10:02 - 10:18 (00:15)
ftpuser ftpd5398 68.170.254.191 Fri Sep 3 09:59 - 09:59 (00:00)
ftpuser ftpd5338 68.168.254.191 Fri Sep 3 09:57 - 09:57 (00:00)
ftpuser ftpd5318 68.178.254.191 Fri Sep 3 09:55 - 09:56 (00:00)

Just a thought


196.151.254.191 in addr, arpa becomes 191.254.151, etc

Then all your IPs start with

191.254

I have a Dial T-online customer who is in 217.

Pretty annoying.

so a 191.254. might be possible.

Might be complete bollocks but hey I ' m a Doctor
 
Old 09-04-2004, 06:25 AM   #5
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
What I essentially mean is that that wtmp loggin is fecked up and maybe records reads the IP the wrong way.
 
Old 09-04-2004, 06:33 AM   #6
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
http://arul.telenet-systems.com/cgi-...68.154.254.191
NetRange: 68.152.0.0 - 68.159.255.255

Nah mate

Strange indeed
 
Old 09-04-2004, 06:36 AM   #7
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
Still they all end in 254.191

And I believe the answer, whatever it might be, is in that pattern.
 
Old 09-07-2004, 09:45 AM   #8
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Original Poster
Rep: Reputation: 15
Capt_Caveman,

I use RHEL 2.1 on that box.

DrNeal,

Thank you, I didn't even realize that they were all ending in .254.191.
 
Old 09-07-2004, 10:08 AM   #9
Mogh
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Rep: Reputation: 0
I just noticed similiar behavior on my RH 8.0 systems. If I log into gnome from the PC itself 'last -i' records the address to an ip that is not even close to what I am using.

Just to be sure I tried on a few more RH 8.0 boxes and the two others both showed the same odd IP address the first one was using each time I logged in and out.
 
Old 09-07-2004, 10:59 AM   #10
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
This is known bug:

http://bugzilla.redhat.com/bugzilla/...g.cgi?id=82540
https://bugzilla.redhat.com/bugzilla...g.cgi?id=98659

along with the ftp weirdness (prob same or related bug):
http://bugzilla.redhat.com/bugzilla/...g.cgi?id=32417

Last edited by Capt_Caveman; 09-07-2004 at 11:04 AM.
 
Old 09-07-2004, 12:49 PM   #11
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Original Poster
Rep: Reputation: 15
Those reported bugs seem to be exactly what I am experiancing. I like at the bottom of one of the threads how it says:

"This behaviour could lead to the wrong conclusion that the system was invaded or
hacked by an unauthorized perpetrator."

YOU THINK!!!!

lol thanks for the heart attack.
 
Old 09-07-2004, 01:16 PM   #12
Mogh
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Rep: Reputation: 0
"heart attack", yeah that was about my reaction and immediately went to the firewall to block the IP. Then I noticed the login/logout time was the same as when I was on the console and decided to do the same test from a few more stations to realize it was just a bug.
 
Old 09-07-2004, 05:39 PM   #13
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
What's really bad about it is that the IP addresses displayed aren't completely random. One that I've seen resolves to a US defense contractor (Northrop-Grumman). So seeing that Northrop-Grumman has cracked your box can be quite disturbing as well Though the .254.191 portion of the address is indeed intriguing.
 
Old 09-09-2004, 03:49 AM   #14
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
have you tried reverse lookups on those IPs?
 
Old 09-09-2004, 02:04 PM   #15
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Original Poster
Rep: Reputation: 15
When I looked up the ips, it says that they are comming from the U.S
 
  


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
Looks like crap on mine also wonderboy1999 DamnSmallLinux 5 01-06-2005 05:59 AM
how to define a specific range of IPs and/or multiple IPs in an iptables rule?... TheHellsMaster Linux - Security 9 09-20-2004 10:06 AM
snmp staus shows it running but on trying MRTG, it shows public@ipaddr not giving res swati220781 Linux - Networking 3 07-08-2004 05:32 PM
desktop shows on TV but movie shows black screen litrelord Mandriva 6 07-05-2004 05:10 AM
Mine is BIGGER than yours kabong Linux - General 7 10-19-2002 04:36 PM

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

All times are GMT -5. The time now is 10:28 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