You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current configuration is not optimal for users behind a NAT that want to advertise a public address instead of relying on automatic peer discovery. See feedback from 0xFury on discord on how to configure externally advertised public addresses for geth and lighthouse.
######### Advanced Networking #########
# These are some parameters you can use to help with (incoming) peering issues on clients.
# One prerequisite to these tweaks is to ensure you open up the correct ports in your firewall/router.
# Another prerequisite is to declare your external public IP here:
#PUBLIC_IP=<external public IP>
# Enable NAT for Geth
# For additional NAT settings, see Geth docs: https://geth.ethereum.org/docs/fundamentals/command-line-options
#GETH_NAT=extip:${PUBLIC_IP}
Note we should alignPUBLIC_IP with CHARON_P2P_EXTERNAL_HOSTNAME and NIMBUS_EXTERNAL_IP, preferably use the same variable for all. Need to double check if all flags support IPs and DNSs or not...
The text was updated successfully, but these errors were encountered:
corverroos
changed the title
Improve geth and lighthouse NAT configuration
Improve geth and lighthouse advertised public address configuration
Feb 27, 2023
🎯 Problem to be solved
The current configuration is not optimal for users behind a NAT that want to advertise a public address instead of relying on automatic peer discovery. See feedback from 0xFury on discord on how to configure externally advertised public addresses for geth and lighthouse.
https://discord.com/channels/849256203614945310/946519880910385172/1078776267194777810.
Proposed Solution:
--nat=extip:<IP>
for IP and--port=<PORT>
for port:This can be configured in the docker-compose as (see .emv sample below):
Example
.env.sample
:Note we should align
PUBLIC_IP
withCHARON_P2P_EXTERNAL_HOSTNAME
andNIMBUS_EXTERNAL_IP
, preferably use the same variable for all. Need to double check if all flags support IPs and DNSs or not...The text was updated successfully, but these errors were encountered: