Hello,
I have a setup with 3 routers; the visualization would look like this:
clients ↔ OPNsense router (no NAT) ↔routing rules ↔OpenWrt router (no NAT) ↔ routing rules ↔ ISP router with NAT ↔ Internet
The issue is that I have no internet access from secondary router (OPNsense) and any clients connected to it.
The following IPs are assigned:
primary router (OpenWrt):
LAN: 172.16.1.1/24
DMZ: 172.16.11.1/24
eth1: 172.16.0.1/30
WAN: 192.168.1.2/24
secondary router (OPNsense):
LAN: 172.16.1.2/24
Office: 172.21.10.1/24 (VLAN)
Guest: 172.21.20.1/24 (VLAN)
WAN: 172.16.0.2/30
Interface eth1 is not assigned to any firewall zone, it's a blank NIC.
And this is the routing table of primary router:
root@eddie:~# ip route
default via 192.168.1.1 dev wan src 192.168.1.2
172.16.0.0/30 dev lan5 scope link src 172.16.0.1
172.16.1.0/24 dev lan2 scope link src 172.16.1.1
172.16.11.0/24 dev lan4 scope link src 172.16.11.1
172.21.0.0/16 via 172.16.0.2 dev lan5 onlink
192.168.1.0/24 dev wan scope link src 192.168.1.2
My understanding is that there's no route from secondary router to internet.
Any communication between primary and secondary router is via subnet 172.16.0.0/30.
Can you please advise what is missing to route internet traffic from secondary router to ISP router via primary router?
THX