feat: add --netrestrict to node cmd like in geth (#19686)

Co-authored-by: weixie.cui <weixie.cui@okg.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
cui
2025-11-14 21:08:51 +08:00
committed by GitHub
parent a21a3cc0d6
commit 7191e9ca10
12 changed files with 431 additions and 6 deletions

View File

@@ -275,6 +275,13 @@ Networking:
--network-id <NETWORK_ID>
Optional network ID to override the chain specification's network ID for P2P connections
--netrestrict <NETRESTRICT>
Restrict network communication to the given IP networks (CIDR masks).
Comma separated list of CIDR network specifications. Only peers with IP addresses within these ranges will be allowed to connect.
Example: --netrestrict "192.168.0.0/16,10.0.0.0/8"
RPC:
--http
Enable the HTTP-RPC server

View File

@@ -221,6 +221,13 @@ Networking:
--network-id <NETWORK_ID>
Optional network ID to override the chain specification's network ID for P2P connections
--netrestrict <NETRESTRICT>
Restrict network communication to the given IP networks (CIDR masks).
Comma separated list of CIDR network specifications. Only peers with IP addresses within these ranges will be allowed to connect.
Example: --netrestrict "192.168.0.0/16,10.0.0.0/8"
Datadir:
--datadir <DATA_DIR>
The path to the data dir for all reth files and subdirectories.

View File

@@ -221,6 +221,13 @@ Networking:
--network-id <NETWORK_ID>
Optional network ID to override the chain specification's network ID for P2P connections
--netrestrict <NETRESTRICT>
Restrict network communication to the given IP networks (CIDR masks).
Comma separated list of CIDR network specifications. Only peers with IP addresses within these ranges will be allowed to connect.
Example: --netrestrict "192.168.0.0/16,10.0.0.0/8"
Datadir:
--datadir <DATA_DIR>
The path to the data dir for all reth files and subdirectories.

View File

@@ -351,6 +351,13 @@ Networking:
--network-id <NETWORK_ID>
Optional network ID to override the chain specification's network ID for P2P connections
--netrestrict <NETRESTRICT>
Restrict network communication to the given IP networks (CIDR masks).
Comma separated list of CIDR network specifications. Only peers with IP addresses within these ranges will be allowed to connect.
Example: --netrestrict "192.168.0.0/16,10.0.0.0/8"
Logging:
--log.stdout.format <FORMAT>
The format to use for logs written to stdout