• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

Masternode Open Ports

Dominic

New member
The default firewall policy on my Masternode is to drop all inbound packets, except ports 22, 80, 443 and 9999.

If I run the command "./dash-cli getinfo" with the firewall off I get the required output.

The same command with the firewall on returns the error "couldn't connect to server"

Is there a definite list of ports required for a Masternode?

Many thanks.
 
Masternode actually only needs port 9999. I would suggest closing the others if this is your cool wallet and you have a lot of coins.
 
The default firewall policy on my Masternode is to drop all inbound packets, except ports 22, 80, 443 and 9999.

If I run the command "./dash-cli getinfo" with the firewall off I get the required output.

The same command with the firewall on returns the error "couldn't connect to server"

Is there a definite list of ports required for a Masternode?

Many thanks.
dash-cli uses 9998 for rpc port but it should be using localhost by default - make sure you have localhost connections allowed.

Masternode actually only needs port 9999. I would suggest closing the others if this is your cool wallet and you have a lot of coins.
22 is for ssh, so if this was a remote one I would definitely keep it open :)
 
Thanks for all the feedback.

I've added port 9998 TCP and UDP. It still doesn't work. If I change the INPUT policy to ACCEPT it works. I haven't specified any restrictions by IP address, these should include localhost?

Any iptable experts?

Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:9999
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:9998
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:9998
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:9998
 
Back
Top