Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6814

Networking and servers • Can only ping & SSH, despite no firewall (Bookworm)

$
0
0
I'm trying to upgrade from Pi OS 10 to 12, but am having trouble with networking.

I can ping and SSH into my Pi no problem. However, when I set up listeners on other ports, they are unreachable.

Here's what I've tested (all on a local network):

* ✅ Mac > Pi ping (Bookworm)
* ✅ Mac > Pi SSH (Bookworm)
* ✅ iPad > Pi SSH (Bookworm)
* ✅ Pi > Mac port 5000
* ✅ Mac > Pi port 5000 (Buster, my previous install)
* ❌ Mac > Pi port 5000 (Bookworm)
* ❌ iPad > Pi port 5000 (Bookworm)

To listen to a port, I run, e.g. `nc -l 5000`, and then try to curl it or load it in a browser. Although it obviously doesn't return a web page, I see the request, which is enough.

For example, on the Pi:

Code:

pi4@raspberrypi:~ $ nc -l 5000
Then, from the Mac, with netcat running on the Pi:

Code:

❯ ping 192.168.50.37PING 192.168.50.37 (192.168.50.37): 56 data bytes64 bytes from 192.168.50.37: icmp_seq=0 ttl=64 time=6.342 ms64 bytes from 192.168.50.37: icmp_seq=1 ttl=64 time=4.734 ms❯ curl 192.168.50.37:5000curl: (7) Failed to connect to 192.168.50.37 port 5000 after 14 ms: Couldn't connect to server
What I see if I do the curl from the Pi to itself:

Code:

pi4@raspberrypi:~ $ nc -l 5000GET / HTTP/1.1Host: 192.168.50.37:5000User-Agent: curl/7.88.1Accept: */*
This is a vanilla install, with no major config changes or packages added. I have a fairly basic router with no special LAN configuration.

It seems like there must be some kind of firewall software running on the Pi, but I haven't configured any, and my understanding is there's none on by default. Perhaps I'm mistaken?

Statistics: Posted by more_of_a_tart_guy — Sun May 25, 2025 8:43 pm — Replies 7 — Views 85



Viewing all articles
Browse latest Browse all 6814

Trending Articles