Mercurial > prosody-wiki
comparison mod_firewall.wiki @ 428:4e1a0785c0e4
Edited wiki page mod_firewall through web user interface.
author | florob@babelmonkeys.de |
---|---|
date | Mon, 17 Feb 2014 00:11:00 +0000 |
parents | 2396160dca7c |
children |
comparison
equal
deleted
inserted
replaced
427:ff097d886420 | 428:4e1a0785c0e4 |
---|---|
36 TIME: 12am-9am, 5pm-12am, Saturday, Sunday | 36 TIME: 12am-9am, 5pm-12am, Saturday, Sunday |
37 REPLY=Sorry, I am afraid our office is closed at the moment. If you need assistance, please call our 24-hour support line on 123-456-789. | 37 REPLY=Sorry, I am afraid our office is closed at the moment. If you need assistance, please call our 24-hour support line on 123-456-789. |
38 }}} | 38 }}} |
39 | 39 |
40 This rule will reply with a short message whenever someone tries to send a message to someone at any of the hosts defined in the 'myorganisation' outside of office hours. | 40 This rule will reply with a short message whenever someone tries to send a message to someone at any of the hosts defined in the 'myorganisation' outside of office hours. |
41 | |
42 Firewall rules should be written to a {{{ruleset.pfw}}} file. Multiple such rule | |
43 files can be specified in the configuration using: | |
44 | |
45 {{{ | |
46 firewall_scripts = { "path/to/ruleset.pfw" } | |
47 }}} | |
41 | 48 |
42 == Conditions == | 49 == Conditions == |
43 All conditions must come before any action in a rule block. The condition name is followed by a colon (':'), and the value to test for. | 50 All conditions must come before any action in a rule block. The condition name is followed by a colon (':'), and the value to test for. |
44 | 51 |
45 A condition can be preceded or followed by `NOT` to negate its match. For example: | 52 A condition can be preceded or followed by `NOT` to negate its match. For example: |