write_net_rules is broken

https://bugs.gentoo.org/show_bug.cgi?id=475276