Http://easyfwgen.morizot.net/gen/index.php
Log in to the above site, follow the prompt step by step to generate a complete iptables script
This script can be directly used directly below to Init.D.
Even if this script is studied, it is more likely to understand more than the direct reading document.