Changes

From Ravencoin Wiki
Jump to navigationJump to search
2 bytes removed ,  10:44, 30 October 2018
# To make sure the necessary ports are open in your Raspberry Pi: <pre>sudo iptables -A INPUT -p tcp --dport 8767 -j ACCEPT &#10;sudo iptables -A INPUT -p udp --dport 8767 -j ACCEPT</pre>
# You also need to set port forwarding in your router. The necessary steps to do this differs per router and therefore I need to refer you to the manual of your router. Be sure to forward the port to the IP address of your Raspberry Pi and the port you are forwarding is 8767. You can find the IP address using the <code>ifconfig</code> command. It is either <code>192.168.X.X</code> or <code>10.0.X.X</code>.
#Next, we are going to install ''Uncomplicated Firewall'' (''ufw''). As mentioned in the introduction: this is highly recommended because you are opening a port to the outside world and you want to make sure it is only used for Ravencoin: <pre>sudo apt-get install ufw</pre> '''Note:''' ''ufw'' default rules allow for all outgoing connections, but block all incoming connections. <br /><br /> '''Optional:''' If you plan on using SSH to access your raspberry pi, make sure that ssh access is allowed (but limited): <pre>sudo apt install ufwlimit ssh</pre> '''Optional:''' You might want to add a few more limitations on ssh. For example if you’re planning on accessing your node from local network only. Depending on your local network: <pre>sudo ufw allow from 192.168.1.0/24 to any port 22</pre> Or <pre>sudo ufw allow from 10.0.0.0/24 to any port 22</pre> And/or if you have a dedicated static IP, for example: <pre>sudo ufw allow from 16.32.64.128 to any port 22</pre>
# To allow Ravencoin traffic: <pre>sudo ufw allow 8767 comment 'Ravencoin'</pre> You can preview the results using: <pre>sudo ufw status verbose &#10;&#10;Example output: &#10;To Action From&#10;-- ------ ----&#10;22/tcp LIMIT IN Anywhere&#10;8767 ALLOW IN Anywhere # Ravencoin&#10;22/tcp (v6) LIMIT IN Anywhere (v6) &#10;8767 (v6) ALLOW IN Anywhere (v6) # Ravencoin </pre>
# Enable Firewall: <pre>sudo ufw enable</pre>

Navigation menu