Advice on multiWan / multiLan config

Hello everyone.

I’m hoping one of you fine gentlemen can help me out. Bear with me, i’m no networking expert lol.. I did my best to draw my current configuration.

I have a bananaPI r4 router with 5G cell service. On this router I have an SSD which serves media to home network over the lan Ive named “Lan 1”.. I BELIEVE I have it setup to operate like a switch as I have my physical switch (which my hardwired devices connect to) connected to lan port 1 and have DHCP off..

All I want Lan 1 to do is serve media to my devices..

I have “Lan 2” setup and access it over wifi with DHCP on..

Here’s my goal.. I have ATT fiber and I don’t want to torrent over it.. I want my torrent downloads to use the 5G modem.. so, i connect to lan2 over wifi, add my torrents and have them download to a folder where they are served by lan1 DLNA server..

The issue Im having is while connected to lan2, I did a traceroute and the first hop was to lan1 (192.168.1.x)

My latest go at this, I created a new firewall rule for the 5G modem (wanb) and did:

wanb → reject accept reject Masquerading
lan2 → wanb accept accept accept

traceroute seems to be ‘correct’ or at least not using the att fiber..

traceroute to openwrt.org (64.226.122.113), 20 hops max, 46 byte packets
1 107.243.2.72 45.840 ms
2 *
3 *
4 *
5 *
6 *
7 *
8 *
9 *
10 *
11 *
12 *
13 *
14 *
15 *
16 62.115.204.9 168.418 ms
17 *
18 *
19 *
20 *

FYI, it doesn’t seem to be as simple as setting lan2 gateway to the 5G modem because it changes..

I suppose in short, I want lan1 and lan2 to operate independently and have no knowledge of each other.

(i tried to add other images of the config but it will only let me add one image) let me know if you’d like to see any other config..

thanks in advance..

Disclaimer: Since you haven't posted any configurations, this is all speculation based on the diagram and your explanations.

It seems that the only job of the PI regarding network 192.168.1.0/24 is to provide some file sharing services. DHCP and wireless are provided by external devices.

I would suggest you restore the firewall configuration to its defaults.

cp /rom/etc/config/firewall /etc/config/

Set the IP address of the (default) lan interface to 10.100.0.1/24, enable DHCP and attach it to the "LAN 2" SSID.

Do not set a default gateway for the "LAN 1" interface (whatever its logical name is) and do not assign it to any firewall zone. If "LAN 1" (192.168.1.100) needs to access the internet through the ATT ONT for some reason, move the gateway to a dedicated routing table.

# /etc/config/network

config rule
        option src '192.168.1.100/32'
        option lookup '100'

config route
        option target '0.0.0.0/0'
        option interface 'lan1' # <- Correct logical interface name
        option gateway '192.168.1.254' # <- Correct def gateway
        option table '100'