Firewall Configurations
The UFW firewall can be used to control the network access to your node With any new installation, UFW is disabled by default. You will have to enable it with the following steps:
Deny any incoming and outgoing traffit
sudo ufw default deny incoming
sudo ufw default allow outgoingAllow ssh access
sudo ufw allow ssh (port 22 or your ssh port number) /tcpAllow cardano-node p2p port
sudo ufw allow (your port #) /tcpAllow chrony ntp
sudo ufw allow 123/udpEnable Firewall
sudo ufw enableVerify status
sudo ufw status numberedOnly open these following ports on nodes behind a network firewall Allow grafana web server port
sudo ufw allow 3000/tcpAllow prometheus endpoint port
sudo ufw allow 9100/tcpAllow prometheus cardano-node metric data port
sudo ufw allow 12798/tcpThis next step is optional but recomended to follow Permitting connections from a specific IP can be set up by following these next commands
sudo ufw allow (your laptop)Example
sudo ufw allow from (182.382.84.22)
Last updated
Was this helpful?