I recently set up my Raspberry Pi to act as a router. All is working well when it comes to connected devices accessing the internet. The problem is that my computers don't seem to be allowed/capable of communicating with each other.
- Router Pi (a Raspberry Pi 4, set up as a router)
- Computer Pi (a Raspberry Pi 3)
- Desktop Computer (a desktop computer running Linux)
Both the Computer Pi and the Desktop Computer is connected to Router Pi over WiFi.
For example, when trying to open ssh between Desktop Computer and Computer Pi, i receive the following message:
ssh firstname.lastname@example.org ssh: connect to host 192.168.4.4 port 22: No route to host
However, the following works:
- ssh to Router Pi from Desktop Computer.
- ssh to Computer Pi from Router Pi
This is the output of my iptables configuration, since I suspect it might have to do with this. Here I also tried to allow ssh connections by adding a rule, but it doesn't seem to have affected anything.
sudo iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:ssh Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
So, to the question: What could prohibit the devices from accessing one another?
EDIT: The tutorial i used to set up the router pi is this one: https://www.raspberrypi.org/documentation/configuration/wireless/access-point-routed.md