How to force OpenWrt into router mode when connected to another router?

I have a main internet-connected router (D-Link DRW-2000) and a tp-link Archer MR200 with OpenWrt 19.07.8 (newest unofficial build available).

I wish the Archer to connect to the main router and for Archer's clients to have their traffic go through a proxy. I also want to specify different DNS servers for Archer's clients.

When I hook up the Archer's WAN port to LAN1 on D-Link I get internet through the Archer, but DHCP is delegated to the D-Link and I am not able to access the OpenWrt webgui or ssh server I tried port forwarding the ssh server and webgui to no avail. The LAN on the D-Link is 192.168.0.1/24, Archer has 192.168.1.1/24 - so there should not be conflict.

I am ok with having double nat if it solves my issue, but can't for the life of me figure out how to stop OpenWrt going into what I assume is bridge mode when being connected to the D-Link (I wanted to create a separate NAT-less LAN on the D-Link, but it's quite limited in what it can do and I believe it's not doable).

How is the second router connected to the first one?

Disable masquerade on the second router and add a static route for the second lan on the first router.

2 Likes

In addition disable the SPI Firewall or set everything to ACCEPT

1 Like