Friday, October 05, 2018

pfctl tables: adding a CIDR typo to a new table

I just came upon this while stumbling across my numeric keypad.

(If case you are wondering, the "*" key is next to the "/" key ...)

---

recent snapshot:

$> uname -vrsm
OpenBSD 6.4 GENERIC#329 amd64

$> doas pfctl -t sample -T add 74.125.0.0*16
1 table created.
1/1 addresses added.

$> doas pfctl -t sample -T show
127.0.0.1

---

and on patched 6.3:

$> uname -vrsm
OpenBSD 6.3 GENERIC.MP#11 amd64

$> doas pfctl -t sample -T add 74.125.0.0*16
1 table created.
2/2 addresses added.

$> doas pfctl -t sample -T show
127.0.0.1
::0

---

OK - my keyboarding skills need some improvement ;-)

As usual, big thanks to Theo and to all the past and present devs !!!

No comments:

Post a Comment