# HG changeset patch # User MWild1@gmail.com # Date 1368705624 0 # Node ID 2396160dca7cb6b4ab8a17e3109d7ff8cc25af14 # Parent 31eb570f6bc03bf7ae2ce64d5f62d1ddce38648e Fix examples of zone and rate definitions diff -r 31eb570f6bc0 -r 2396160dca7c mod_firewall.wiki --- a/mod_firewall.wiki Mon May 13 20:02:51 2013 +0200 +++ b/mod_firewall.wiki Thu May 16 12:00:24 2013 +0000 @@ -29,7 +29,7 @@ FROM is a condition, and DROP is an action. This is about as simple as it gets. How about heading to the other extreme? Let's demonstrate something more complex that mod_firewall can do for you: {{{ -ZONE myorganisation: staff.myorg.example, support.myorg.example +%ZONE myorganisation: staff.myorg.example, support.myorg.example ENTERING: myorganisation KIND: message @@ -56,7 +56,7 @@ Zones are defined at the top of a script with the following syntax (they are not part of a rule block): {{{ -ZONE myzone: host1, host2, user@host3, foo.bar.example +%ZONE myzone: host1, host2, user@host3, foo.bar.example }}} A host listed in a zone also matches all users on that host (but not subdomains). @@ -168,7 +168,7 @@ First, you must define any rate limits that you are going to use in your script. Here we create a limiter called 'normal' that will allow 2 stanzas per second, and then we define a rule to bounce messages when over this limit. Note that the `RATE` definition is not part of a rule (multiple rules can share the same limiter). {{{ -RATE normal: 2 (burst 3) +%RATE normal: 2 (burst 3) KIND: message LIMIT: normal