Hello eveybody, i have our main network as 192.168.1.0/24 with default gateway for internet at 192.168.1.1. In this subnet we have a network printer with static IP 192.168.1.20.
Then we have another private subnet for wifi 192.168.39.0/24 routed (no firewall) with router at 192.168.1.249.
The printer needs to have internet access also for remote assistance so it’s default router il set to 192.168.1.1 and it seems i have no chances to add a static route to the printer itself.
How can i have wifi clients with address 192.168.36.x be able to print on this printer? is there any way to let the printer know to send back packets to 192.168.1.249 in case of wifi subnet if i can’t set a static router?
So let me get this straight
You have one wan ISP.
You have two LANs (presumably not on the same bridge).
One lan is for wifi and one lan is for wired home.
On your lan you have remote access (from external wan) to one device the printer.
You wish to have the wifi lan be able to access the printer to print.
It would be best to see your config prior to making any assumptions
/export hide-sensitive file=yourconfigfeb25
Normally I would make a forward chain rule
source address (wifi subnet) in-interface LANx destination address=printer IP allow
Is all that you should need to do.
Anav thanks for the reply.
My border router/firewall is not mikrotik, the internal router is RB2011.
Normally I would make a forward chain rule
source address (wifi subnet) in-interface LANx destination address=printer IP allow
Is all that you should need to do.
Is the internal router the RB2011 acting as a router?
I will assume yes…
So the rule I noted is to allow the traffic to be destination nated to the printer.
You will need a firewall rule allowing dst nat packets in general
You will need in the primary router to forward the necessary ports for the printer to the WANIP of the RB2011 (or more accuratly its LANIP according to the primary routers lan network).
As I stated also provide config and a diagram would be useful.
Attached is the config for the internal router.
Edge router is not mikrotik.
I can make other devices work, my only problem is how to tell the printer to route the packet for the internal subnet to 192.168.1.249 instead of 192.168.1.1 since it doesn’t allow routes parameter.
@idlemind
Thank you so much!!!
It worked like a charm!!!
I never thought of NATting just that IP address to have the router reach this device with its external address!!