@@ -50,20 +50,20 @@ in
5050
5151 jails = mkOption {
5252 default = { };
53− example =
54− { "apache-nohome-iptables" =
55− ''
56− # Block an IP address if it accesses a non-existent
57− # home directory more than 5 times in 10 minutes,
58− # since that indicates that it's scanning.
59− filter = apache-nohome
60− action = iptables-multiport[name=HTTP, port="http,https"]
61− logpath = /var/log/httpd/error_log*
62− findtime = 600
63− bantime = 600
64− maxretry = 5
65− '';
66− };
53+ example = literalExample ''
54+ { apache-nohome-iptables = '''
55+ # Block an IP address if it accesses a non-existent
56+ # home directory more than 5 times in 10 minutes,
57+ # since that indicates that it's scanning.
58+ filter = apache-nohome
59+ action = iptables-multiport[name=HTTP, port="http,https"]
60+ logpath = /var/log/httpd/error_log*
61+ findtime = 600
62+ bantime = 600
63+ maxretry = 5
64+ ''';
65+ }
66+ '';
6767 type = types.attrsOf types.lines;
6868 description =
6969 ''