Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 121E3C3A5A2 for ; Fri, 23 Aug 2019 12:50:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E792C2173E for ; Fri, 23 Aug 2019 12:50:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394691AbfHWMub (ORCPT ); Fri, 23 Aug 2019 08:50:31 -0400 Received: from ganesha.gnumonks.org ([213.95.27.120]:49211 "EHLO ganesha.gnumonks.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390578AbfHWMu2 (ORCPT ); Fri, 23 Aug 2019 08:50:28 -0400 Received: from [31.4.212.198] (helo=gnumonks.org) by ganesha.gnumonks.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i191J-0007qy-4z; Fri, 23 Aug 2019 14:50:27 +0200 Date: Fri, 23 Aug 2019 14:50:19 +0200 From: Pablo Neira Ayuso To: Shekhar Sharma Cc: netfilter-devel@vger.kernel.org Subject: Re: [PATCH nft v1]files: add script to generate geoip.nft file Message-ID: <20190823125019.g4aptpcr3jp7d4cc@salvia> References: <20190822041153.4680-1-shekhar250198@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190822041153.4680-1-shekhar250198@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org On Thu, Aug 22, 2019 at 09:41:53AM +0530, Shekhar Sharma wrote: > This patch adds a python script to download MaxMind's GeoLite2 > database and generate a file named geoip.nft, which users can 'include'. > > The nft_geoip.py file has three options: > --download : to download and unzip the database folder from MaxMind. > --file-location : to specify the .csv file containing the country names and geoname ids. > --file-ipv4 : to specify the .csv file containing information about IPv4 blocks. I'm fine with this initial version, will wait for others to have a look into this to give feedback. On your side: I would like to know if you will commit to extend this and make improvements incrementally, in particular, making a follow up patch to add IPv6 support I'd suggest, among other things. A --output option would be good to specify what directory and file name will be used to store the autogenerated .nft file. Thanks.