Best way to manage iptables rules, host based firewall

Looks like progress is being made to manage host based firewall via iptables for RancherOS.
https://github.com/rancher/os/issues/446#issuecomment-243280170

Just wondering if there were any suggestions on how to go about this so I don’t have to go invent another wheel.
Would dropping in the ufw from Ubuntu be useful?
I’m most familiar with managing iptables via a vetted script as opposed to typing out straight iptables rules

Cheers