Not a 1:1 setup, but for a little while I used Arc...
# show-and-tell
j
Not a 1:1 setup, but for a little while I used Arch Linux on a MiniPC as my home router. I documented it all here: https://heywoodlh.io/arch-linux-router/ The iptables commands might be a helpful reference