Add a --nat
flag to reth node
#854
Labels
A-cli
Related to the reth CLI
C-enhancement
New feature or request
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
It should be possible to specify what kind of NAT mechanism to use when invoking
reth node
.The supported methods can be found here:
reth/crates/net/nat/src/lib.rs
Line 25 in e6ca4c5
The flag should be:
--nat <method>
, where<method>
is any of:any
upnp
auto
(maps toPublicIp
)extip:<ip>
(maps toExternalIp
)none
(maps toNone
)The default should be
any
.Ideally, the
NatResolver
enum would be re-used for the CLI to not duplicate code.The resolution method is set on
NetworkConfigBuilder
using:Additional context
No response
The text was updated successfully, but these errors were encountered: