I just wrote a quick tool to generate iptables rules so I won't have to read the man page every time.