I believe that you mixed up interpolations (done but pythons config module) and
substitutions done by fail2ban

actionstart = iptables -N fail2ban-<name>
              iptables -I <fwchain> -m state --state NEW -p <protocol> --dport 
<port> -j fail2ban-<name>
              <post_start_commands>

I don't think that it is fail2ban intent to substitute
post_start_commands here -- try using interpolations %(...)s

please inspect your configs more carefully on above mentioned subject
and get back to me so we could close this bug report if there is no
issue with interpolations handling (which is in any case not much of
fail2ban issue but python...)

# Option:  fwend
# Notes.:  command executed once at the end of Fail2Ban
# Values:  CMD
#
actionstop = <pre_end_commands>
             iptables -D <fwchain> -m state --state NEW -p <protocol> --dport 
<port> -j fail2ban-<name>
             iptables -F fail2ban-<name>
             iptables -X fail2ban-<name>

On Wed, 15 Nov 2006, martin f krafft wrote:

> Oops. Now attached.
-- 
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]


Attachment: pgpvgxxgpTOC5.pgp
Description: PGP signature

Reply via email to