Docker container can not access hosts behind VPN

Solution 1:

so it seemed that the problem was not route tables or so on, but the strongswan configuration on both client and server. I set all the left and right subnets on both client and server config to right values and also the left and right firewalls to true and restarted both side and since then it it working. I can ping from anywhere the other side of network.