|
|
@ -477,6 +477,7 @@ f2b_jail_cmd_status(char *res, size_t ressize, f2b_jail_t *jail) { |
|
|
|
"name: %s\n" |
|
|
|
"name: %s\n" |
|
|
|
"flags:\n" |
|
|
|
"flags:\n" |
|
|
|
" enabled: %s\n" |
|
|
|
" enabled: %s\n" |
|
|
|
|
|
|
|
" state: %s\n" |
|
|
|
"maxretry: %d\n" |
|
|
|
"maxretry: %d\n" |
|
|
|
"times:\n" |
|
|
|
"times:\n" |
|
|
|
" bantime: %d\n" |
|
|
|
" bantime: %d\n" |
|
|
@ -494,6 +495,7 @@ f2b_jail_cmd_status(char *res, size_t ressize, f2b_jail_t *jail) { |
|
|
|
|
|
|
|
|
|
|
|
snprintf(res, ressize, fmt, jail->name, |
|
|
|
snprintf(res, ressize, fmt, jail->name, |
|
|
|
jail->flags & JAIL_ENABLED ? "yes" : "no", |
|
|
|
jail->flags & JAIL_ENABLED ? "yes" : "no", |
|
|
|
|
|
|
|
jail->flags & JAIL_HAS_STATE ? "yes" : "no", |
|
|
|
jail->maxretry, |
|
|
|
jail->maxretry, |
|
|
|
jail->bantime, jail->findtime, jail->expiretime, |
|
|
|
jail->bantime, jail->findtime, jail->expiretime, |
|
|
|
jail->incr_bantime, jail->incr_findtime, |
|
|
|
jail->incr_bantime, jail->incr_findtime, |
|
|
|