Skip to content

Commit

Permalink
adds nat-restrict to cli options
Browse files Browse the repository at this point in the history
Signed-off-by: m4sterbunny <[email protected]>
  • Loading branch information
m4sterbunny committed Jul 4, 2024
1 parent 5caba7a commit 02a61d3
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions docs/public-networks/reference/cli/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -2596,6 +2596,46 @@ You must specify `DOCKER` when using the [Besu Docker image](../../get-started/i

:::

### `net-restrict`

<Tabs>

<TabItem value="Syntax" label="Syntax" default>

```bash
--net-restrict=[<String>,..]
```

</TabItem>

<TabItem value="Example" label="Example">

```bash
--net-restrict=192.168.1.0/24,10.0.0.0/8
```

</TabItem>

<TabItem value="Environment variable" label="Environment variable">

```bash
BESU_NET-RESTRICT=192.168.1.0/24,10.0.0.0/8
```

</TabItem>

<TabItem value="Example configuration file" label="Example configuration file">

```bash
net-restrict=["192.168.1.0/24","10.0.0.0/8"]
```

</TabItem>

</Tabs>

Comma-separated array of allowed IP subnets. Enables node operators to nominate peers by their IP subnets. Default is null: no subnet-based peer permission restrictions will be applied.

### `network`

<Tabs>
Expand Down

0 comments on commit 02a61d3

Please sign in to comment.