---
title: 'lfd:netblock'
url: 'https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-netblock'
markdown: 'https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-netblock.md'
date: '2026-09-24'
description: 'Configure temporary to permanent IP and network class blocking. juggernaut --task=lfd:netblock Option Value Default Description --LF_PERMBLOCK <1|0> 1 Enable temporary to permanent IP blocking. This will permanently block IP addresses that have been temporarily blocked more than L…'
taxonomy:
  category:
    - docs
  tag:
    - login_failure_blocking
---

[](#)  [ Basics ](https://docs.danami.com/juggernaut/)     [ Command Line Interface ](https://docs.danami.com/juggernaut/command-line-interface)      Lfd       lfd:netblock    

# lfd:netblock

Configure temporary to permanent IP and network class blocking.

```
juggernaut --task=lfd:netblock
```

| Option | Value | Default | Description |
|---|---|---|---|
| `--LF_PERMBLOCK` | <1\|0> | 1 | Enable temporary to permanent IP blocking. This will permanently block IP addresses that have been temporarily blocked more than LF\_PERMBLOCK\_COUNT times in the last LF\_PERMBLOCK\_INTERVAL seconds. |
| `--LF_PERMBLOCK_INTERVAL` |  | 86400 | The interval in seconds before triggering a Permanent block. LF\_PERMBLOCK\_INTERVAL needs to be at least LF\_PERMBLOCK\_COUNT multiplied by the longest temporary time setting (TTL) for blocked IPs, to be effective. |
| `--LF_PERMBLOCK_COUNT` |  | 4 | The number of times before triggering a Permanent block. |
| `--LF_NETBLOCK` | <1\|0> | 1 | Permanently block IPs by network class. Permanently block classes of IP address where individual IP addresses within the same class LF\_NETBLOCK\_CLASS have already been blocked more than LF\_NETBLOCK\_COUNT times in the last LF\_NETBLOCK\_INTERVAL seconds. This can help blocking DDOS attacks launched from within the same network class. |
| `--LF_NETBLOCK_INTERVAL` |  | 86400 | The interval in seconds before triggering a Permanent block by network class. |
| `--LF_NETBLOCK_COUNT` |  | 4 | The number of times before triggering a Permanent block. |
| `--LF_NETBLOCK_CLASS` | <A\|B\|C> | C | Care and consideration is required when blocking network classes A or B. |
| `--LF_NETBLOCK_IPV6` | <string> |  | Enable IPv6 netblock blocking. Valid settings for LF\_NETBLOCK\_IPV6 are "/64", "/56", "/48", "/32" and "/24". Great care should be taken with IPV6 netblock ranges due to the large number of addresses involved. |
| `--default` | <yes> |  | Reset all settings to their default values. |
| `--default_option` | <option> |  | Reset a specific setting to its default value. |
| `--restart` | <yes> |  | Restart the service after saving settings. |

## Examples

```
// set the LF_PERMBLOCK_COUNT
juggernaut --task=lfd:netblock --LF_PERMBLOCK_COUNT=3 --restart=yes

// reset LF_PERMBLOCK_COUNT back to default
juggernaut --task=lfd:netblock --default_option=LF_PERMBLOCK_COUNT --restart=yes

// reset all settings back to default
juggernaut --task=lfd:netblock --default=yes --restart=yes
```

## Related Pages

- [Login Failure Custom Triggers](https://docs.danami.com/juggernaut/user-guide/login-failure-custom-triggers "Login Failure Custom Triggers")
- [Netblock Settings](https://docs.danami.com/juggernaut/settings/login-failure-daemon/netblock-settings "Netblock Settings")
- [Login Failure Blocking](https://docs.danami.com/juggernaut/settings/login-failure-daemon/login-failure-blocking "Login Failure Blocking")

 [ ](https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-loginfailurecustomtriggers) [](https://docs.danami.com/juggernaut/settings/login-failure-daemon/login-failure-blocking)

---

## Navigation

- Previous: [lfd:messenger](https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-messenger.md)
- Next: [lfd:rblcheck](https://docs.danami.com/juggernaut/command-line-interface/lfd/lfd-rblcheck.md)
