iptables is Linux firewall standard. You can easily open and close network connections through it. Actually it’s pretty easy, but sometimes we can’t remember any flags and commands to create firewall rules. Here is a cheatsheet table constituted by all necessary iptables rules for novices. I’ll try to update it once in a while.