learning 1.9.8rc1 / 1.6rc1 and syslog-ng
Posted: Thu Dec 12, 2002 6:44 pm
Im using:
linux 2.4.20
grsecurity-1.9.8 rc1
gradm-1.6 rc1
syslog-ng 1.4.16
gentoo 1.4 rc1
Learning hasn't been working for me, so I did some investigating.
It seems that gradm expects the followign format:
Mon DD HH:MM:SS hostname kernel: grsec: LEARN:xxxxxxxxxxx
Syslog-NG puts out:
Mon DD HH:MM:SS hostname grsec: LEARN:xxxxxxxxxxxxxxxx
And Grsec 1.9.8rc1 adds "From x.x.x.x:" to the beginning of its log entries that are caused from remote connections.
So am I crazy, or is my information correct?
I parsed my LEARN log entries through the following perl regex and learning suddenly worked.
(note: was a 30 second write)
I triedto modify the gradm_learner.l , but it seems my lex skills are very rusty.
Anyway, someone tell me I am completely wrong here.
linux 2.4.20
grsecurity-1.9.8 rc1
gradm-1.6 rc1
syslog-ng 1.4.16
gentoo 1.4 rc1
Learning hasn't been working for me, so I did some investigating.
It seems that gradm expects the followign format:
Mon DD HH:MM:SS hostname kernel: grsec: LEARN:xxxxxxxxxxx
Syslog-NG puts out:
Mon DD HH:MM:SS hostname grsec: LEARN:xxxxxxxxxxxxxxxx
And Grsec 1.9.8rc1 adds "From x.x.x.x:" to the beginning of its log entries that are caused from remote connections.
So am I crazy, or is my information correct?
I parsed my LEARN log entries through the following perl regex and learning suddenly worked.
- Code: Select all
s/^(Dec 12 ..:..:.. cerebus) (grsec:) (?:From 172.19.151.156: )?(LEARN:.+)$/$1 kernel: $2 $3/go
(note: was a 30 second write)
I triedto modify the gradm_learner.l , but it seems my lex skills are very rusty.
Anyway, someone tell me I am completely wrong here.