Connecting Sites via openvpn and policy routing

Started by Maarten, October 01, 2018, 09:23:53 AM

Previous topic - Next topic
Hi,

I've got a problem when connecting sites together via policy routing.

I've connected my sites as shown in the attached image, and the problem is I can't ping from "Site B" to "Site C" and visa versa.
The Ping request does reach the host at "Site C", and the ping reply travels back over the tunnel, but "Site A" decides to route the ping reply over the default gateway instead of the tunnel to "Site B". This is the case in both directions. So the policy routing seems to be setup correctly.

What can be the problem here?

Site A, Interface : WAN ... Check that Upstream is Off or Auto

Hi, thanks for the reply, going to check it out

Problem when I remove the default gateway and set the wan interface upstream to auto is that openvpn does not have a return path, and the log floods with:

openvpn[49033]: write UDPv4: No route to host (code=65)


You dont have to remove default gateway, only set upstream to auto ..

ah ok, just tried that, but the result remains the same.


no, the ping reply being routed out over the wan adapter. (image of the first post)

Can you post the routing table and a screenshot of openvpn status, on both all networks should be listed.