rado3105 :
Sorry, mistake, I cant get from PC1 to router2 and everything behind him. Can you help me with that static routes? I have no idea how to set it.
You have 4 networks.
- 192.168.1.0/24
- 192.168.10.0/24
- 10.13.55.0/24
- 10.17.17.0/24 (this net won't be seen by the rest becoz it is NAT'ed by AP-Client2, more later)
In setting up static routes, command syntax depends on specific router model. You don't need static
routes for directly connected networks.
In Main Router:
- set up 1 static route so that if it receives packets with destination IP 10.13.55.x, forward that
to Router2, specifically Router2 eth1 IP
In Router2:
- set up 1 static route so that it will forward 192.168.1.x packets to Main Router. One thing unclear to me: what is masquerade doing at the Router2? To me masquerade means NAT. You don't need NAT here.
Concerning your 10.17.17.0/24 net:
- nodes in that net can talk to any other nodes in the rest of networks including Internet BUT
- nodes in other networks won't be able to talk to 10.17.17.x nodes due to NAT'ing at the AP-Client2 (unless you can configure to port-forward SPECIFIC ports or VPN tunnel is involved between nodes)
- I can say if you take out NAT at AP-Client2 (which also means eliminating 10.17.17.0/24 network), then your problem will disappear.
Configuring Default Gateways on nodes:
- nodes in 192.168.1.0/24 and 192.168.10.0/24 should have Router 1 respective IPs as default gateways
- nodes in 10.13.55.0/24 should have Router 2 10.13.55.1 as default gw. I assume 10.17.17.0/24 net no longer exist here.
- you also need to enable (or unblock in case of firewall) icmp-redirects at the Main Router's eth1 interface. You might find that it may be enabled automatically by default