aboutsummaryrefslogtreecommitdiffstats
path: root/security/sshguard/files
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2007-06-18 05:55:21 +0800
committeritetcu <itetcu@FreeBSD.org>2007-06-18 05:55:21 +0800
commit7a5b21d7d43c127af8fc80f65e0a74d6f1f211ae (patch)
treead984a94fc9e25dded09f853437ea99d9e68e880 /security/sshguard/files
parent07b3dcf27c98c808772b0d6710debed5e1a7c233 (diff)
downloadfreebsd-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.l11
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; }
n defaultkrion2018-03-281-0/+2 * net-p2p/monero-cli: Upgrade from 0.11.1.0 to 0.12.0.0vd2018-03-271-4/+12 * Work around the lack of definition of union semun per POSIX.brooks2018-03-031-0/+1 * devel/boost-*: update to 1.66.0jbeich2018-01-181-1/+1