Linux kernel (2.4+) firewall, NAT and packet mangling tools
https://www.netfilter.org/projects/iptables/