Date: Mon, 27 Mar 2017 17:19:59 +0200 From: Ralf Mardorf <ralf.mardorf@rocketmail.com> To: freebsd-questions@freebsd.org Subject: Re: Two pf questions Message-ID: <20170327171959.405bbfbb@archlinux.localdomain> In-Reply-To: <20170327170941.59c84eec@archlinux.localdomain> References: <CAPORhP4JA_Jak7fL8Ko7wwoxGob=qLDzPLxtTgekoumqQJEGmA@mail.gmail.com> <20170327170941.59c84eec@archlinux.localdomain>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 27 Mar 2017 17:09:41 +0200, Ralf Mardorf wrote: >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 PS: I don't know how your tools work, so perhaps you only need to pipe the "new", assuming the tools shouldn't provide their own options to do the same ;). pfctl -t bruteforce -T show | sort -u >> /etc/pf/bruteforce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170327171959.405bbfbb>