I have a Wifi router doing DHCP and NAT, connected to another router, which in turn is connected to the internet.
The main router (LAN IP: 192.168.1.1) distributes addresses in the 192.168.1.* range, while the Wifi router (WAN IP: 192.168.1.190, LAN IP: 192.168.2.1) distributes addresses in the 192.168.2.* range. The reason for the separation of these two network segments is that there is a NAS behind the wifi router, with heavy amounts of data being constantly exchanged between wifi clients and the NAS.
Most of the time, only Wifi clients need to access the NAS, and everything works very well. In some cases, though, accessing the NAT from a wired client connected to the main router is needed.
I'm searching for a way to allow clients connected to the main router to access the NAS behind the Wifi router.
Setting up a specific route on the main router (192.168.2.0, mask 255.255.255.0, routing to 192.168.1.190) only works if I disable NAT on the router, which in turns decreases the performance of transmissions over Wifi.
Could port forwarding work? Which ports would I need to forward? How would I do that?
Thanks for your help!
EDIT
I've set up port forwarding on my router, and now accessing \\192.168.2.1\
in Windows Explorer doesn't return "Not found". Instead, it simply shows a blank listing (no files or folders appear). What might I have done wrong?
EDIT 2
Some more details: I'm running Windows 7 Home Edition, and Debian Squeeze. The NAS uses the SMB protocol. Trying to access it from debian (via smbclient -L
) yields an empty listing.