From nobody@FreeBSD.org  Sun Aug  5 07:27:36 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5324316A41A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  5 Aug 2007 07:27:36 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 39A5E13C45E
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  5 Aug 2007 07:27:36 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l757RZH9052350
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 5 Aug 2007 07:27:35 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l757RZjD052349;
	Sun, 5 Aug 2007 07:27:35 GMT
	(envelope-from nobody)
Message-Id: <200708050727.l757RZjD052349@www.freebsd.org>
Date: Sun, 5 Aug 2007 07:27:35 GMT
From: Alex Keda <admin@lissyara.su>
To: freebsd-gnats-submit@FreeBSD.org
Subject: port security/sshit not work when hostname not IP
X-Send-Pr-Version: www-3.0

>Number:         115210
>Category:       ports
>Synopsis:       port security/sshit not work when hostname not IP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    tabthorpe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 05 07:30:01 GMT 2007
>Closed-Date:    Tue Sep 18 13:19:09 GMT 2007
>Last-Modified:  Tue Sep 18 13:20:02 GMT 2007
>Originator:     Alex Keda
>Release:        6.2
>Organization:
USSR
>Environment:
FreeBSD ussr.lissyara.int.otradno.ru 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #1: Sat Jul  7 12:39:24 MSD 2007     root@ussr.lissyara.int.otradno.ru:/usr/obj/usr/src/sys/color-console  i386
>Description:
log:
Jul 31 22:26:27 mail ftpd[54426]: FTP LOGIN FAILED FROM c-71-235-187-254.hsd1.ma.comcast.net, Administrator
Jul 31 22:26:51 mail ftpd[54433]: FTP LOGIN FAILED FROM c-71-235-187-254.hsd1.ma.comcast.net, Administrator
Jul 31 22:27:17 mail ftpd[54459]: FTP LOGIN FAILED FROM c-71-235-187-254.hsd1.ma.comcast.net, Administrator
Jul 31 22:27:17 mail sshit: BLOCKING c with ipfw2
Jul 31 22:27:25 mail ftpd[54459]: FTP LOGIN FAILED FROM c-71-235-187-254.hsd1.ma.comcast.net, Administrator
Jul 31 22:27:25 mail sshit: block for c not working!
>How-To-Repeat:
always
>Fix:
patch http://lissyara.su/patch/patch-for-sshit-v2.diff

Patch attached with submission follows:

diff -Nru sshit.orig/Makefile sshit/Makefile
--- sshit.orig/Makefile	Mon Jul  2 12:36:13 2007
+++ sshit/Makefile	Sun Aug  5 11:04:22 2007
@@ -7,7 +7,7 @@
 
 PORTNAME=	sshit
 PORTVERSION=	0.6
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security
 MASTER_SITES=	http://anp.ath.cx/sshit/ \
 		${MASTER_SITE_LOCAL}
diff -Nru sshit.orig/files/patch-sshit.diff sshit/files/patch-sshit.diff
--- sshit.orig/files/patch-sshit.diff	Mon Jul  2 12:36:13 2007
+++ sshit/files/patch-sshit.diff	Sun Aug  5 11:04:22 2007
@@ -1,11 +1,11 @@
---- sshit.orig	Sun Jul  1 22:13:45 2007
-+++ sshit	Sun Jul  1 22:14:46 2007
+--- sshit.orig	Sun Aug  5 10:56:39 2007
++++ sshit	Sun Aug  5 10:59:03 2007
 @@ -317,7 +317,7 @@
  
  while (<>) {
  	chomp;
 -	if (/(failed|Invalid user) .*from (\d+\.\d+\.\d+\.\d+|[\da-fA-F:]+)/i ) { # IPv4 & IPv6
-+	if (/(failed|error|Invalid user) .*from (\d+\.\d+\.\d+\.\d+|[\da-fA-F:]+)/i ) { # IPv4 & IPv6
++	if (/(failed|error|Invalid user) .*from (\d+\.\d+\.\d+\.\d+|([a-z-]+\.)+[a-z]{2,4}|[\da-fA-F:]+)/i ) { # IPv4 & IPv6
  		$ip = $2;
  		if ($list{$ip}{name}) {
  			if ($list{$ip}{n} >= $MAX_COUNT) {


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sun Aug 5 07:30:07 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115210 

From: "Jui-Nan Lin" <jnlin@csie.nctu.edu.tw>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/115210: port security/sshit not work when hostname not IP
Date: Sun, 5 Aug 2007 18:21:09 +0800

 Dear committer,
 
 Please commit this patch, thanks!
 
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Sun Aug 5 16:29:20 UTC 2007 
State-Changed-Why:  
Maintainer approved. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115210 
Responsible-Changed-From-To: freebsd-ports-bugs->tabthorpe 
Responsible-Changed-By: tabthorpe 
Responsible-Changed-When: Mon Sep 17 17:39:06 UTC 2007 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115210 
State-Changed-From-To: open->closed 
State-Changed-By: tabthorpe 
State-Changed-When: Tue Sep 18 13:19:07 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115210 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/115210: commit references a PR
Date: Tue, 18 Sep 2007 13:16:18 +0000 (UTC)

 tabthorpe    2007-09-18 13:16:12 UTC
 
   FreeBSD ports repository
 
   Modified files:
     security/sshit       Makefile 
     security/sshit/files patch-sshit.diff 
   Log:
   - make work with fqdn
   - bump PORTREVISION
   
   PR:             ports/115210
   Submitted by:   Alex Keda <admin_AT_lissyara.su>
   Approved by:    Jui-Nan Lin (maintainer), clsung (mentor)
   
   Revision  Changes    Path
   1.6       +1 -1      ports/security/sshit/Makefile
   1.2       +3 -3      ports/security/sshit/files/patch-sshit.diff
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
