The Custom Firewall app provides a low-level tool to configure advanced firewall rules.