Wrong IP address logged

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Wrong IP address logged

Postby marshall » Fri Aug 01, 2008 12:07 pm

I've recently set up grsecurity, and have been watching my logfiles. In my /var/log/grsec.log file, I notice entries such as:

Aug 1 09:57:17 ghostwheel grsec: From 192.168.0.1: mount of /sys to /.chroot/foo/sys by /bin/mount[mount:21603] uid/euid:0/0 gid/egid:0/0, parent /sbin/runscript.sh[runscript.sh:21598] uid/euid:0/0 gid/egid:0/0

Only the strange thing is the IP address of the system is 192.168.0.2. Any idea why this IP address would be logged incorrectly like this? I sure appreciate any ideas.

Thanks!
marshall
 
Posts: 2
Joined: Fri Aug 01, 2008 12:05 pm

Wrong expectation from the user side?

Postby Alexei.Sheplyakov » Fri Aug 01, 2008 1:14 pm

marshall wrote:Aug 1 09:57:17 ghostwheel grsec: From 192.168.0.1: mount of /sys to /.chroot/foo/sys by /bin/mount[mount:21603] uid/euid:0/0 gid/egid:0/0, parent /sbin/runscript.sh[runscript.sh:21598] uid/euid:0/0 gid/egid:0/0


AFAIK, grsecurity logs _remote_ IPs. So, this line tells that
someone who logged in from 192.168.0.1 mounted /sys on /.chroot/foo/sys.
Thus, I don't think there's something wrong here (unless the address of
the remote host is not 192.168.0.1, or you are logged in locally, or
something like that).
Alexei.Sheplyakov
 
Posts: 53
Joined: Sun Feb 19, 2006 11:48 am

Re: Wrong IP address logged

Postby marshall » Mon Aug 11, 2008 11:46 pm

Oh, I completely misunderstood, my bad! So, if I ssh in from another system to 192.168.0.2 from 192.168.0.1, then trigger something that is going to be logged, it shows the remote IP address I connected _from_ rather than the IP of the system I'm on. OK, that's handy! Cool, thanks for clearing that up!
marshall
 
Posts: 2
Joined: Fri Aug 01, 2008 12:05 pm


Return to grsecurity support

cron