Full Node FAQ
Run the following to allow CometBFT (RPC) through the firewall:
sudo ufw allow 26657/tcpAlternatively, if ufw is not available, update your iptables:
sudo iptables -A INPUT -p tcp --dport 26657 -j ACCEPTUpdate your Cosmovisor config to listen on all interfaces and allow CORS:
sed -i 's|laddr = "tcp://127.0.0.1:26657"|laddr = "tcp://0.0.0.0:26657"|' $HOME/.pocket/config/config.toml
sed -i 's|cors_allowed_origins = \[\]|cors_allowed_origins = ["*"]|' $HOME/.pocket/config/config.tomlRestart the Cosmovisor service:
sudo systemctl restart cosmovisor.serviceTest the connection from an external host:
nc -vz {EXTERNAL_IP} 26657Learn more: https://docs.cometbft.com/main/rpc/.
Be careful about making this public as adversarial actors may try to DDoS your node.
FAQ
Was this helpful?
