Hi guys just looking for some help regarding Loopback.
My router setup is a little unique so please bare with me.
One of my router (Router B) has an IP of 192.168.2.1 - (Router C) has an IP of 192.168.2.100
Router B and Router C are connected Wirelessly using WDS, with Router B assigning IP addresses. All of this works great.
Here comes the difficult part.
Connected to Router B is Router A (IP 192.168.1.1). Router A is NOT a DD-WRT router, however Router A is the primary router for the Internet, which Router B is connected to.
The reason why this is, is becuase Router B is used as a VPN Client, this also explains the different subnet, as Router A has nothing to do with the VPN (I don't need it to), and Router B is the VPN Client.
Therefore if I connect to Router A i'm NOT using VPN, and if I connect to Router B / C I am using VPN.
Heres the problem;
One of my Computers is connected to Router A, and if I try to FTP I get timeout errors. Connecting to the devices, browsing the file directory isn't a problem only FTP.
If i add the following command to Router B (DD-WRT Router) FTP works great, from my computer which is connected to Router A (Regular Router)
iptables -t nat -I POSTROUTING -o br0 -s 192.168.1.1/24 -d 192.168.2.1/24 -j MASQUERADE
Adding this command seems that everything is work great and its all fixed. However when adding this command, anything connected to Router C (192.168.2.100) looses connection to any NAS devices connected to Router B (192.168.2.1).
Example:
Before adding the command to the firewall on Router B, my Apple TV (connected to Router C) can connect to all NAS Devices on both Router B / C
After adding the command to the firewall on Router B, my Apple TV (Conected to Router C) CANNOT connect to any NAS devices on Router B.
Of course removing the loopback command from the firewall fixes everything, but then I'm back to the problem of not being able to FTP.
I know for some of you this seems a vert strange setup, and maybe a little complicated, however it does need to be like this. Any help regarding this loopback problem would be great.
Is there anything needed ot be added on Router C?
I'd be happy to explain anything more if needed.