iptables
Bugs? What's this? ;-) Well, you might want to have a look at http://bugzilla.netfilter.org/