FreeBSD Bugzilla – Attachment 79188 Details for
Bug 113800
[patch] security/sshguard{,-ipfw,-pf} doesn't recognize all IPv6 addresses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
sshguard.diff
sshguard.diff (text/plain), 1.94 KB, created by
Henrik Brix Andersen
on 2007-06-17 16:40:02 UTC
(
hide
)
Description:
sshguard.diff
Filename:
MIME Type:
Creator:
Henrik Brix Andersen
Created:
2007-06-17 16:40:02 UTC
Size:
1.94 KB
patch
obsolete
>diff -urpN /usr/ports/security/sshguard/Makefile security/sshguard/Makefile >--- /usr/ports/security/sshguard/Makefile Wed Jun 13 00:13:32 2007 >+++ security/sshguard/Makefile Sun Jun 17 17:25:16 2007 >@@ -7,6 +7,7 @@ > > PORTNAME= sshguard > DISTVERSION= 1.0 >+PORTREVISION= 1 > CATEGORIES= security > MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} > MASTER_SITE_SUBDIR= ${PORTNAME} >diff -urpN /usr/ports/security/sshguard/files/patch-attack_scanner.l security/sshguard/files/patch-attack_scanner.l >--- /usr/ports/security/sshguard/files/patch-attack_scanner.l Thu Jan 1 01:00:00 1970 >+++ security/sshguard/files/patch-attack_scanner.l Sun Jun 17 17:22:37 2007 >@@ -0,0 +1,11 @@ >+--- src/attack_scanner.l.orig Wed May 23 20:53:53 2007 >++++ src/attack_scanner.l Sat Jun 16 17:45:43 2007 >+@@ -46,7 +46,7 @@ NUMBER [1-9][0-9]* >+ /* an IPv4 address */ >+ (25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]([0-9])?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]([0-9])?|0)){3} { yylval.str = yytext; return IPv4; } >+ /* an IPv6 address */ >+-((([a-fA-F0-9]{1,4}:){2}(:[a-fA-F0-9]{1,4}){1,5})|(:(:[a-fA-F0-9]{1,4}){1,6}|([a-fA-F0-9]{1,4}:)(:[a-fA-F0-9]{1,4}){1,6}|([a-fA-F0-9]{1,4}:){2}(:[a-fA-F0-9]{1,4}){1,5}|([a-fA-F0-9]{1,4}:){3}(:[a-fA-F0-9]{1,4}){1,4}|([a-fA-F0-9]{1,4}:){4}(:[a-fA-F0-9]{1,4}){1,3}|([a-fA-F0-9]{1,4}:){5}(:[a-fA-F0-9]{1,4}){1,2}|([a-fA-F0-9]{1,4}:){6}:[a-fA-F0-9]{1,4})) { yylval.str = yytext; return IPv6; } >++(([a-fA-F0-9]{1,4}(:[a-fA-F0-9]{1,4}){7})|(([a-fA-F0-9]{1,4}:){2}(:[a-fA-F0-9]{1,4}){1,5})|(:(:[a-fA-F0-9]{1,4}){1,6}|([a-fA-F0-9]{1,4}:)(:[a-fA-F0-9]{1,4}){1,6}|([a-fA-F0-9]{1,4}:){2}(:[a-fA-F0-9]{1,4}){1,5}|([a-fA-F0-9]{1,4}:){3}(:[a-fA-F0-9]{1,4}){1,4}|([a-fA-F0-9]{1,4}:){4}(:[a-fA-F0-9]{1,4}){1,3}|([a-fA-F0-9]{1,4}:){5}(:[a-fA-F0-9]{1,4}){1,2}|([a-fA-F0-9]{1,4}:){6}:[a-fA-F0-9]{1,4})) { yylval.str = yytext; return IPv6; } >+ >+ /* an host address (PTR) */ >+ localhost|([-a-zA-Z0-9]+\.)+[a-zA-Z]+ { yylval.str = yytext; return HOSTADDR; }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 113800
: 79188