Hi I have a GL-AR300M running OpenWrt connected to my household router(virgin media). I would like people connected to the VirginMedia box to be to be able to access a Samba share on a server connected to the GL-AR300M.
Since this rule is on WAN - please confirm this interface:
Is not facing your ISP; and
if so, that they permit SMB over the Internet
It is highly uncommon that an ISP would permit such residential traffic as those ports are common vectors for malware and rarely used for file sharing across a WAN.
Do not use "src_port", it does not mean what you think it means.
If the clients on the WAN side have a route to reach the SAMBA server, you do not need to use NAT but a forwarding rule. If they do not have such route, packets will never reach the router.
Is the SAMBA server configured to accept connections from the WAN range?
@lleachii I'm not trying to access from outside the ISPs router. Let me try to explain, I have router1 which includes a modem running the ISPs own firmware. Then I have router2 running openwrt connected via ethernet cable to router1.
router2 has two zones, wan and lan, I have configured wan with access to lan. Also lan has access to wan.
If I want to access a device on router1 from router2 this works fine. I can't access any device connected to router2 from router1. Apart from the router itself.
I think I'm missing some major point, I'm quite new to this sort of thing. Maybe router1 doesn't know how to see the devices on router2?
@eduperez Would I need to configure a static route on router1 (has next to no configuration available, certainly nothing to do with routes) or router2? Or both?
@vgaetera Thanks for the help, router1 has no configuration for static routes. So the only option is to activate modem only mode on the ISP's router1, then attach another router with openwrt to this? Then setup the static route. The whole reason for this is, I just want to access files on my router2 connected device from my media streamer on router1