Hi on the same server I use openVPN with Strongswan to interconnect 2 networks
- Routes populated via strongswan are less specific (10.0.0.0/8)
- Routes populated via openvpn are more specific (10.1.1.0/24)
Initially, I was thinking that this won't be an issue, since I only want the /24 to be routed via openvpn. However, since Strongswan use routing table 220, all the 10.1.1.0/24 traffic was send to Strongswan making the openvpn tunnel unavailable.
I tried to use charon.routing_table=0, which makes Strongswan using the main routing table. Now the routing table seems correct, bug curiously, the traffic is still not send to the openvpn tunnel.
Even if i remove manually the route 10.0.0.0/8 (ip route del 10.0.0.0/8), strongswan seems to catch all traffic to 10.1.1.0/24, but I don't undestrand why.
How can I make strongswan to avoid catching more specific subnets traffic routed to other devices (tun0 for openvpn)?