<p>I was unaware that Uncomplicated Firewall ufw was installed on my Raspberry Pi. When I ran the command below I found the following.</p>
<pre><code>sudo ufw status verbose

Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW IN    Anywhere                  
22/tcp (v6)                ALLOW IN    Anywhere (v6)     
</code></pre>
<p>This showed me that is was active and only allowing action from port 22 for SSH. To correct this I opened ports 8333 for MAINET and 18333 for TESTNET with the following commands.</p>
<pre><code>sudo ufw allow 8333 comment &quot;Bitcoin mainnet&quot;

sudo ufw allow 18333 comment &quot;Bitcoin testnet&quot;
</code></pre>
<p>This change the ufw configuration to the following and now inbound connections have been created.</p>
<pre><code>Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW IN    Anywhere                  
8333                       ALLOW IN    Anywhere                   # Bitcoin mainnet
18333                      ALLOW IN    Anywhere                   # Bitcoin testnet
22/tcp (v6)                ALLOW IN    Anywhere (v6)             
8333 (v6)                  ALLOW IN    Anywhere (v6)              # Bitcoin mainnet
18333 (v6)                 ALLOW IN    Anywhere (v6)              # Bitcoin testnet
</code></pre>

CC BY-SA 4.0
2023-12-14T14:41:57.953Z
2023-12-14T14:41:57.953Z
jctbtc
<p>I recently set up a Bitcoin Core Node on a Raspberry Pi. It is fully caught up to the chain tip and has 10 outbound connections. I am using bitcoind to configure the node and have not been able to get inbound connections. Here are the steps I've taken:</p>
<ol>
<li>Firewalls are turned off.</li>
<li>I've set up port forwarding on my router to port 8333.</li>
<li>I've added listen=1 and discover=1 in bitcoin.conf</li>
<li>I created a static ip address on my router.</li>
<li>I rebooted the router and bitcoind.</li>
<li>Checked my ISP for blocked ports and 8333 is not blocked.</li>
</ol>
<p>When I check bitnodes.io, I get a message that port 8333 is unreachable. Any help would be greatly appreciated.</p>

<bitcoin-core><bitcoind><connection><raspberry-pi>
I Can't Get Inbound Connections to My Node
jctbtc
# I Can't Get Inbound Connections to My Node

(Asked by: username_0 on 2023-12-13)

I recently set up a Bitcoin Core Node on a Raspberry Pi. It is fully caught up to the chain tip and has 10 outbound connections. I am using bitcoind to configure the node and have not been able to get inbound connections. Here are the steps I've taken:

1. Firewalls are turned off.
2. I've set up port forwarding on my router to port 8333.
3. I've added listen=1 and discover=1 in bitcoin.conf
4. I created a static ip address on my router.
5. I rebooted the router and bitcoind.
6. Checked my ISP for blocked ports and 8333 is not blocked.

When I check bitnodes.io, I get a message that port 8333 is unreachable. Any help would be greatly appreciated.

**Tags:** bitcoin-core, bitcoind, connection, raspberry-pi


---

## 1 answers

### Answer by username_0 on 2023-12-14. Score: 2

I was unaware that Uncomplicated Firewall ufw was installed on my Raspberry Pi. When I ran the command below I found the following.

```
sudo ufw status verbose

Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW IN    Anywhere                  
22/tcp (v6)                ALLOW IN    Anywhere (v6)     

```

This showed me that is was active and only allowing action from port 22 for SSH. To correct this I opened ports 8333 for MAINET and 18333 for TESTNET with the following commands.

```
sudo ufw allow 8333 comment "Bitcoin mainnet"

sudo ufw allow 18333 comment "Bitcoin testnet"

```

This change the ufw configuration to the following and now inbound connections have been created.

```
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW IN    Anywhere                  
8333                       ALLOW IN    Anywhere                   # Bitcoin mainnet
18333                      ALLOW IN    Anywhere                   # Bitcoin testnet
22/tcp (v6)                ALLOW IN    Anywhere (v6)             
8333 (v6)                  ALLOW IN    Anywhere (v6)              # Bitcoin mainnet
18333 (v6)                 ALLOW IN    Anywhere (v6)              # Bitcoin testnet

```


---

