Trying to understand why I cannot reach other LAN devices on a ISP modem. WiFi is off. I'm using two of the 4 LAN ports on the back.
I have one ISP modem at 192.168.1.1 (LAN), WAN is not relevant, as it is the public IP, let's say 1.2.3.4. Already triple checked there is no option for client isolation or the likes for the LAN side (at least visible on the UI). It's set up to offer DHCP from .2 to .200
Then on one LAN port I have a device 192.168.1.101/24 (it should receive connections from all interfaces on port 22. I tested moving it to a proper router using same DHCP IPs).
I plugged another device on another LAN port of the ISP modem and got 192.168.1.2/24
It's a Linux device with NetworkManager handling DHCP.
It gets the following address and route:
$ ip a
2: enp3s0f4u1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether b6:c3:97:fe:2e:fb brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 brd 192.168.1.255 scope global dynamic noprefixroute enp3s0f4u1
valid_lft 258516sec preferred_lft 258516sec
inet6 fe80::b4c3:97ff:fefe:2efb/64 scope link proto kernel_ll
valid_lft forever preferred_lft forever
$ ip r
default via 192.168.1.1 dev enp3s0f4u1 proto dhcp src 192.168.1.2 metric 100
192.168.1.0/24 dev enp3s0f4u1 proto kernel scope link src 192.168.1.2 metric 100
1.2.3.4 -wan- [modem] -lan- 192.168.1.1
|-port1->192.168.1.2
`-port2->192.168.1.101
But it cannot reach that other device. The trace is weird as it does not look like it even reaches the ISP modem/router. But maybe I'm just clueless to the output here:
$ tracepath -n 192.168.1.101
1?: [LOCALHOST] pmtu 1500
1: 192.168.1.2 3030.125ms !H
Resume: pmtu 1500
compared to the trace to the router itself
$ tracepath -n4 192.168.1.1
1?: [LOCALHOST] pmtu 1500
1: 192.168.1.1 1.089ms reached
1: 192.168.1.1 0.857ms reached
Resume: pmtu 1500 hops 1 back 1
The router has an option to setup port forwards. I set them up (wan)*:22->(lan)192.168.1.101:22 (plus the ICMP ping stuff). I can connect and ping from outside to 192.168.1.101 (thru the external IP) fine.
outside4Gnetwork$ ssh 1.2.3.4
root@192.168.1.101 $ ...
But the port mapper is only on the WAN interface, from the LAN it doesn't work
192.168.1.2$ ssh 1.2.3.4
(times out) (expected, as mentioned in one comment, this would be hairpin/NAT loopback)
192.168.1.2$ ssh 192.196.1.1
(connection refused) (again, expected there's no mapping from the lan side, nor ssh server on the ISP modem)
192.168.1.2$ ssh 1.2.3.4 -J external.server.example.com
root@192.168.1.101$ ... (works. since it goes via an external jumphost and back into the WAN)
It is a Sagemcom Fast 5657 device and there's no firewall or routing settings on the UI.
So, what I'm trying to understand is why the devices are isolated on the wired LAN side? Why can't 192.168.1.2 and 192.168.1.101 talk between them?