starting point are 2 seperate consumer LANs with seperate consumer grade WLAN modems. LAN2 is my neighbor, LAN1 is my own home-LAN. Whenever he wants to access my NAS or printer he has to log into my WLAN and then is hogging on my bandwith which I don't like.
So this is the starting point:
my idea now was to use an OpenWRT Router that acts as an WLAN bridge:
The OpenWRT is connected on the LAN port with a cable to the ISP Modem of LAN2. The DHCP server on the LAN-interface is switched off (since dhcp is done by the ISP Modem), mode is set to static and given a staticIP out of LAN2 (192.168.2.0/24) that is not used and lies outside the dhcp pool so no collision can occur. Now I also have to use this IP further access the webUI of OpenWRT. The WIFI module of the OpenWRT is now set to Station/Client Mode and connected to the WLAN of LAN1. With this a WWAN Interface is created that I assigned the wan/wan6 firewall settings so it uses the NATed routing into my LAN.
Will this already work? or will I have to define some static routes on the openWRT like:
Net 192.168.1.0
Subnet 255.255.255.0
Gateway 192.168.2.254 (IP of the OpenWRT)
Net 0.0.0.0
Subnet 0.0.0.0
Gateway 192.168.2.1 (IP of his ISP WLAN modem)
Printer and NAS are on a fixed IP on my network so I would add some Firewall rules to drop everything else.
Expected results:
- Any client from LAN2 can access Printer and NAS (given he knows the IP, since there will be no forwarding of broadcasts)
- No client from LAN1 can access anything on LAN2 (since LAN2 is NATed) Each LAN clients will use their own internet connection.
My Questions:
- Am I thinking this right?
- Is there a possibility to also forward broadcasts and bonjour-service so printer and NAS will be visible for dummies also.
- Is this the best solution for this scenario, since I can't switch out the ISP modems and could only do a double NAT.
Edit: I cannot add static routes to the routers provided by the ISPs