concept Shorewall in category linux

This is an excerpt from Manning's book Linux in Action.
man shorewall-rules—Displays documentation on the rules file used by Shorewall.
Next up, I’m going to discuss creating a DMZ using two widely used software firewall packages: iptables and Shorewall. Before I do, though, I should tell you that for all intents and purposes, they’re pretty much the same thing. Shorewall is a more user-friendly tool that does nothing more than manipulate iptables rules without you seeing it. Here are two reasons why I’d like you to see both those approaches:
Shorewall startup options are controlled by the /etc/default/shorewall file, but the firewall configuration itself is normally handled by a number of files in the /etc/shorewall/ directory. /etc/shorewall/shorewall.conf sets the shell environment within which Shorewall will run. It’s possible that for simple projects, you won’t even need to touch either that file or the params and conntrack files that you’ll also find there. You will, however, need to create some other files for which templates exist in /usr/ share/doc/ shorewall/examples/ (or /usr/share/doc/shorewall-5.0.14.1/Samples on CentOS, where 5.0.x is the version number). If you list the contents of that examples/ directory, you’ll see four subdirectories that, in turn, contain sample configuration files covering a number of common scenarios: