From 433a87e1f9c4e04933382784bb18e1cd264523a0 Mon Sep 17 00:00:00 2001 From: Ken Barber Date: Sun, 10 Jul 2011 23:42:25 +0100 Subject: [PATCH] Added quickstart not on how to make firewall rules persistent. --- README.markdown | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.markdown b/README.markdown index abf5a6b..707eeed 100644 --- a/README.markdown +++ b/README.markdown @@ -55,6 +55,19 @@ Source NAT example (perfect for a virtualization host): table => 'nat', } +You can make firewall rules persistent with the following iptables example: + + exec { "persist-firewall": + command => $operatingsystem ? { + "debian" => "/sbin/iptables > /etc/iptables/rules.v4", + /(RedHat|CentOS)/ => "/sbin/iptables > /etc/sysconfig/iptables", + } + refreshonly => true, + } + Firewall { + notify => Exec["persist-firewall"] + } + ### Supported firewalls Currently we support: -- 2.45.2