Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Mar 2017 17:09:41 +0200
From:      Ralf Mardorf <ralf.mardorf@rocketmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Two pf questions
Message-ID:  <20170327170941.59c84eec@archlinux.localdomain>
In-Reply-To: <CAPORhP4JA_Jak7fL8Ko7wwoxGob=qLDzPLxtTgekoumqQJEGmA@mail.gmail.com>
References:  <CAPORhP4JA_Jak7fL8Ko7wwoxGob=qLDzPLxtTgekoumqQJEGmA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 27 Mar 2017 10:37:49 -0400, David Mehler wrote:
>pfctl -t bruteforce -T show >> /etc/pf/bruteforce
>
>the problem is that I'm getting duplic addresses. The table has
>fifteen addresses in memory but 75 in the table there's no unique
>sorting, any ideas on how? I only want unique IP's in the on disk
>table to avoid redundant addresses

cp /etc/pf/bruteforce /tmp/foobar.txt
pfctl -t bruteforce -T show >> /tmp/foobar.txt
sort -u /tmp/foobar.txt > /etc/pf/bruteforce




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170327170941.59c84eec>