Date: Tue, 18 Feb 2020 11:08:47 -0500 From: ajtiM <starikarp@dismail.de> To: freebsd-questions@freebsd.org Subject: Re: Blacklist IP file for IPFW? Message-ID: <20200218110847.57d10344@dismail.de> In-Reply-To: <CAEW8WPvgU1EHD4jj0T5q3aucgSgXsZtHcK5Jq%2BdSgsgq5u9DwQ@mail.gmail.com> References: <CAEW8WPsMvq7bdAQ4cu=RYZQ=PfXMmbUUQ-yi_0qUAjt-nWTf=Q@mail.gmail.com> <9585fce4-b48d-a210-d62f-a2100c0cf929@tundraware.com> <CAEW8WPunc9%2B-7qybkrnDep3R08ApgjBkA2n=fi%2ByU8psTJRkNg@mail.gmail.com> <CAEW8WPtqeFDahGMN8h4qijXe6oug7H6uEyG2hTuqs53G2K98eA@mail.gmail.com> <e3aa5e53-606b-7ad4-b529-5891cf509fbf@tundraware.com> <alpine.BSF.2.22.395.2002180821310.6036@enterprise.ximalas.info> <CAEW8WPuirfT-uq2XOBf%2B1w6StXQLEtSpCgAEELL5pLtthk9tog@mail.gmail.com> <24139.58932.915276.752500@jerusalem.litteratus.org> <CAEW8WPvgU1EHD4jj0T5q3aucgSgXsZtHcK5Jq%2BdSgsgq5u9DwQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 18 Feb 2020 17:00:25 +0300 I am starting with: ipfw table 1 create cat /etc/bogons | xargs -n1 ipfw table 1 add ipfw table 2 create cat /etc/mine | xargs -n1 ipfw table 2 add .... .... and than I have $cmd 00600 deny ip from 'table(1)' to any $cmd 00650 deny log ip from 'table(2)' to any I did use script before: #!/bin/csh ipfw table 1 create fetch -o /tmp/drop.txt http://www.spamhaus.org/drop/drop.txt sed -i '' "s/;.*//" /tmp/drop.txt ipfw table 1 flush foreach IP ( `cat /tmp/drop.txt` ) ipfw table 1 add $IP end and I have in ipf.rules: # Get ip's from Spamhaus # /etc/tables.sh -- "The only difference between a beggar and a Duke was the amount of money they possess". George Orwell
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200218110847.57d10344>