Cant reach printer in secondary router

Hi, i have a printer connected to a secondary OpenWRT router in a 'sub lane' for IoT, i can reach the printer with all devices in that router with this firewall rules

config rule
option target 'ACCEPT'
option dest 'IoT'
list dest_ip '192.168.3.2'
option name 'Printer-lan'
option src 'lan'
option family 'ipv4'
list proto 'all'

config rule
option target 'ACCEPT'
option dest 'IoT'
list dest_ip '192.168.3.2'
option name 'Printer-work'
option src 'work'
option family 'ipv4'
list proto 'all'

But i'm unable to reach from devices in my main router, can someone help me with a rule or zone config to solve this.

config rule
option name 'impressora'
list proto 'all'
option src 'wan'
list src_ip '192.168.1.1/24'
option dest 'IoT'
list dest_ip '192.168.3.2'
option target 'ACCEPT'

Thanks

If I understand correctly:

  • Turn off masquerade on these other networks (except WAN)
  • Make a Static Route on the OpenWrt for 192.168.3.0/24 dev main_lan via 192.168.1.x

x == the IP of the OpenWrt' interface on the main router's network

1 Like

Thanks for the help, i'm a noob and english is not my main language so it's a bit hard to get some stuff.

in the network file? The OpenWrt' interface is 192.168.1.100

config route 'route_example_1'
option interface 'lan'
option target '192.168.3.0/24'
option netmask '255.255.255.0'
option gateway '192.168.1.100'

No, on the Router 1.

This one

:point_down:
screen493

192.168.3.0/24 dev main_lan via 192.168.1.100

2 Likes

The Router 1 is the ISP Router and i don't have access to almost any config, i guess is a waist of time, right now a can reach the printer if i connect to the Wireguard VPN. Thanks for the help.

1 Like