I am struggling with the routing in my topology. In this topology I have the following structure with 2 PCs. Each one of them has 2 different interfaces configured in different subnets:
184.108.40.206/24 (A wifi user) <-(wlp2s0-AP1-192.168.2.1/24) |PC1| (ra0-192.168.1.2/24)-> <- (wlan1-192.168.1.1/24) |PC2| (wlan0-192.168.0.2)->
From here, let's say that a wifi user connects to AP1 (at wlp2s0 interface of PC1) and gets IP 192.168.2.10. Now, from the user I execute ping 192.168.0.2, which is the wlan0 interface of PC2. Given the following routing table at PC1,
and knowing that PC2 has another routing rule that enables the ping replies to come back (using Wireshark), I can see the ping requests and replies going out and coming back at PC1's wlp2s0. However, the final user (192.168.2.10) connected to wlps0 (192.168.2.1) is not getting the replies and therefore the ping fails.
Also, I think I enabled forwarding by executing:
sudo sysctl -w net.ipv4.ip_forward=1