I’ve been wanting to put this article together for some time, a complete guide to implementing iptables on a Linux Server.
Firstly, my assumptions:
The Basics Iptables has by default three chains for the FILTER table:
In this case, we’re going to focus on the INPUT chain (Incoming to firewall. For packets coming to the local server)
Automation I implement these rules using the puppet-iptables module. The module is regularly updated and has a very large feature-set.