OpenVPN remote networks not pushed to main routing table

Started by nothing, October 15, 2020, 10:07:55 PM

Previous topic - Next topic
Quote from: nothing on October 17, 2020, 01:06:45 PM
https://docs.netgate.com/pfsense/en/latest/recipes/openvpn-s2s-tls.html
Here is what i've just found. Those guys seems to have it the official docs.

If you would have followed that instructions you would have added the remote networks in the main server. See screenshot.

Apart from that it´s a pfSense docu, so maybe they are handling stuff differently.
,,The S in IoT stands for Security!" :)

Right. Finally I got it to work. You are right - after all the changes and tests, I've missed to add all remote networks in main server configuration, then split them via CSC.
The OS routing table looks wrong, but it works:
172.16.40.0/24     172.16.255.2       UGS      ovpns2
172.16.50.0/24     172.16.255.2       UGS      ovpns2
172.16.255.0/24    172.16.255.2       UGS      ovpns2
172.16.255.1       link#9             UHS         lo0
172.16.255.2       link#9             UH       ovpns2

As it shows both subnets 40 and 50 are routed to 255.2, which belongs to site1, but access to subnet 40, which belongs to site2 is still accessible, although it's router is 255.6.
Chears and thanks!