diff options
author | itetcu <itetcu@FreeBSD.org> | 2007-06-18 05:55:21 +0800 |
---|---|---|
committer | itetcu <itetcu@FreeBSD.org> | 2007-06-18 05:55:21 +0800 |
commit | 7a5b21d7d43c127af8fc80f65e0a74d6f1f211ae (patch) | |
tree | ad984a94fc9e25dded09f853437ea99d9e68e880 /security/sshguard/files | |
parent | 07b3dcf27c98c808772b0d6710debed5e1a7c233 (diff) | |
download | freebsd-ports-gnome-7a5b21d7d43c127af8fc80f65e0a74d6f1f211ae.tar.gz freebsd-ports-gnome-7a5b21d7d43c127af8fc80f65e0a74d6f1f211ae.tar.zst freebsd-ports-gnome-7a5b21d7d43c127af8fc80f65e0a74d6f1f211ae.zip |
- add patch for:
The regex used to recognize IPv6 addresses in security/sshguard{,-ipfw,-pf}
doesn't catch all IPv6 addresses. The author (and port maintainer) is aware of
this issue and supplied the patch, which fixes the issue. The patch will be
part of sshguard-1.1, which is due soonish.
- bump PORTREVISION
PR: 113800
Submitted by: Henrik Brix Andersen
Approved by: Mij (maintainer)
Diffstat (limited to 'security/sshguard/files')
-rw-r--r-- | security/sshguard/files/patch-attack_scanner.l | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/security/sshguard/files/patch-attack_scanner.l b/security/sshguard/files/patch-attack_scanner.l new file mode 100644 index 000000000000..bb14640decf5 --- /dev/null +++ b/security/sshguard/files/patch-attack_scanner.l @@ -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; } |