From owner-freebsd-ipfw@freebsd.org Thu Aug 11 01:02:34 2016 Return-Path: Delivered-To: freebsd-ipfw@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D27A3BB07AA for ; Thu, 11 Aug 2016 01:02:34 +0000 (UTC) (envelope-from rj@obsigna.com) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 72B6B1184 for ; Thu, 11 Aug 2016 01:02:33 +0000 (UTC) (envelope-from rj@obsigna.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1470877351; l=1577; s=domk; d=obsigna.com; h=To:References:Content-Transfer-Encoding:Date:In-Reply-To:From: Subject:Mime-Version:Content-Type; bh=N2XWweoW1w75C+CYx4xx7FaRgK65RSAZcTXdjj8MUEk=; b=y4apudoOiyGvwbQNiq01MRsIX4ZFp4mH6qMlF1L1VBRjstq859w6QvjfC9qvSJYoRys /VvIaor/dJEZKDOmrtUUkThIqRaUOx/ffpuQtZIyXDE5rvLBseLMCGus3YiXDsD72zXPL tBXi3WVg4VigWbS6sl/X0ESlW4nQnr6pMV4= X-RZG-AUTH: :O2kGeEG7b/pS1EK7WHa0hxqKZr4lnx6UhToX1IWHkW4X7v2ImaU2B+3KSGnPFnG2J+1S7zVK X-RZG-CLASS-ID: mo00 Received: from mail.obsigna.com (bfb6cbed.virtua.com.br [191.182.203.237]) by smtp.strato.de (RZmta 38.13 DYNA|AUTH) with ESMTPSA id d08baas7B12UXFD (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Thu, 11 Aug 2016 03:02:30 +0200 (CEST) Received: from rolf.projectworld.net (rolf.projectworld.net [192.168.222.25]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.obsigna.com (Postfix) with ESMTPSA id CD1FD229861E for ; Wed, 10 Aug 2016 22:02:26 -0300 (BRT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: your thoughts on a particualar ipfw action. From: "Dr. Rolf Jansen" In-Reply-To: <242DF6D8-4287-43BF-BE9F-CE1665D31ED2@obsigna.com> Date: Wed, 10 Aug 2016 22:02:26 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: <9D024314-57A2-4079-B630-FB0D844DD5B5@obsigna.com> References: <20160805024301.H56585@sola.nimnet.asn.au> <7486c7ce-49db-b6b9-a6bb-13f04b4ce6d6@freebsd.org> <242DF6D8-4287-43BF-BE9F-CE1665D31ED2@obsigna.com> To: freebsd-ipfw@freebsd.org X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2016 01:02:34 -0000 > Am 08.08.2016 um 18:46 schrieb Dr. Rolf Jansen : >=20 > I am almost finished with preparing the tools for geo-blocking and = geo-routing at the firewall for submission to the FreeBSD ports. >=20 > I created a man file for the tools, see: = https://cyclaero.github.io/ipdb/, and I added the recent suggestions on = rule number/action code per country code, namely, I changed the formula = for the x-flag to the suggestion of Ian (value =3D offset + ((C1 - = 'A')*26 + (C2 - 'A'))*10), and I added the idea of directly assigning a = number to a country code in the argument for the t-flag = ("CC=3Dnnnnn:..."). >=20 > Furthermore, I removed the divert filter daemon from the Makefile. The = source is still on GitHub, though, and can be re-vamped if necessary. >=20 > Now I am going to prepare the Makefile for the port. I just submitted a PR asking to add the new port 'sysutils/ipdbtools'. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211744 I needed to change the name of the geoip tool, because GeoIP=C2=AE is a = registered trademark of MaxMind, Inc., see www.maxmind.com. The name of = the tool is now 'ipup' =3D abbreviated form of IP geo location table = generation and look- UP , that is without the boring middle part :-D Those, who used geoip already in some scripts, please excuse the = inconvenience of needing to change the name. With the great help of Julian, I was able to improve the man file and = the latest version can be read online: https://cyclaero.github.io/ipdb/ Best regards Rolf