I have a main-router without WIFI and an AP. The two are connected using LAN and two VLANs, each of them using an own network. When I ping the main-router from the AP it looks like it is using one of the connections at random:
root@ap:~# ping main-router
PING main-router (192.168.22.1): 56 data bytes
64 bytes from 192.168.22.1: seq=0 ttl=64 time=0.636 ms
^C
root@ap:~# ping main-router
PING main-router (192.168.33.1): 56 data bytes
64 bytes from 192.168.33.1: seq=0 ttl=64 time=0.782 ms
^C
root@ap:~# ping main-router
PING main-router (192.168.44.1): 56 data bytes
64 bytes from 192.168.44.1: seq=0 ttl=64 time=0.865 ms
[...]
As long as I do no firewalling, this might even work for my internal network.
The main-router is doing NAT on eth0 (wan). After this there is the providers router doing its own NAT.
root@main-router:~# ip r
default via 192.168.0.1 dev eth0 src 192.168.0.150
192.168.0.0/24 dev eth0 scope link src 192.168.0.150
192.168.22.0/24 dev br-lan scope link src 192.168.22.1
192.168.33.0/24 dev br-iot scope link src 192.168.33.1
192.168.44.0/24 dev br-guest scope link src 192.168.44.1
root@ap:~# ip r
default via 192.168.44.1 dev br-guest src 192.168.44.101
192.168.22.0/24 dev br-lan scope link src 192.168.22.101
192.168.33.0/24 dev br-iot scope link src 192.168.33.101
192.168.44.0/24 dev br-guest scope link src 192.168.44.101
When I start to ping an external address, it works on the main-router:
root@main-router:~# ping example.com
PING example.com (93.184.216.34): 56 data bytes
64 bytes from 93.184.216.34: seq=0 ttl=54 time=113.987 ms
On the AP it will not work at all:
root@ap:~# ping example.com
PING example.com (93.184.216.34): 56 data bytes
^C
--- example.com ping statistics ---
15 packets transmitted, 0 packets received, 100% packet loss
I suspect it has to do with the routing, as tcpdump (on the main-router) is showing me in wireshark:
No. Time Source Destination Protocol Length Info
11 0.002284 192.168.44.101 192.168.44.1 ICMP 131 Destination unreachable (Port unreachable)
12 0.002448 192.168.44.101 93.184.216.34 ICMP 102 Echo (ping) request id=0x100c, seq=0/0, ttl=64 (no response found!)
13 0.002720 192.168.44.1 192.168.44.101 ICMP 130 Destination unreachable (Port unreachable)
14 0.002856 192.168.33.1 192.168.33.101 DNS 91 Standard query response 0x5bcb A example.com A 93.184.216.34
15 0.003175 192.168.33.101 192.168.33.1 ICMP 119 Destination unreachable (Port unreachable)
16 0.003465 192.168.33.1 192.168.33.101 DNS 103 Standard query response 0x6bd4 AAAA example.com AAAA 2606:2800:220:1:248:1893:25c8:1946
17 0.003778 192.168.33.101 192.168.33.1 ICMP 131 Destination unreachable (Port unreachable)
18 1.005794 192.168.44.101 93.184.216.34 ICMP 102 Echo (ping) request id=0x100c, seq=1/256, ttl=64 (no response found!)
19 1.006153 192.168.44.1 192.168.44.101 ICMP 130 Destination unreachable (Port unreachable)
traceroute is strange, too:
root@ap:~# traceroute example.com
traceroute to example.com (93.184.216.34), 30 hops max, 38 byte packets
1 main-router.mydomain (192.168.44.1) 0.777 ms 0.799 ms 0.763 ms
2 main-router.mydomain (192.168.44.1) 0.676 ms 0.817 ms 0.796 ms
root@ap:~#
Clients connected to the AP on a certain network work fine (can ping and connect to the outside world).
I can't even get a grip on to what my issue exactly is...
The only significant fact is: my AP can not reach the internet (or, more specific, can not get a reply from outside).
Do you have any tips, ideas or questions about the setup?