Bug#327088: [Logcheck-devel] Bug#327088: Dovecot rules doesn't work with ipv6

Jamie L. Penman-Smithson jamie at silverdream.org
Sat Oct 15 14:09:41 UTC 2005


On Thu, 2005-10-13 at 22:15 +0200, Elmar Hoffmann wrote:
> > ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ (imap|pop3)-login: Login:
> > [.[:alnum:]@-]+ \[(::ffff:)?[:0-9.]+\]$
> 
> While the given example log entry unfortunately does not show it, an
> IPv6 address does use hex digits, ie. the address of the box I'm
> writing this on is 2001:1638:1810::201:2ff:fe0d:6cec, which would not
> be matched by the pattern (::ffff:)?[:0-9.]+ used above (and the other
> rules I didn't quote).
> Thus a correct pattern to match an IPv4 or IPv6 address would be:
> [0-9a-f.:]+

Thanks for catching that, my only excuse is that I was falling asleep at
the keyboard at the time..

-- 
-Jamie L. Penman-Smithson <jamie at silverdream.org>
 t: +44 1273 424795; f: +44 1273 424795
 PGP: C0A7 955E EED6 A309 23D7 863B C76A 26A3 F0DC FCA8
 never send mail to: oubliette.z at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20051015/c8f48866/attachment.pgp 


More information about the Logcheck-devel mailing list