16
20.7 Legacy Series / Re: OpenVPN remote networks not pushed to main routing table
« on: October 16, 2020, 07:54:14 pm »
That's the OS routing table:
If I add both 10/24 and 20/24 subnets (separated by comma) to the main openvpn configuration they both get routed to the first client to connect, no matter what client specific network I have for each client/site.
Code: [Select]
# netstat -nr
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 78.130.196.1 UGS em0_vlan
-.-.-.0/24 link#6 U em0_vlan
-.-.-.15 link#6 UHS lo0
127.0.0.1 link#3 UH lo0
192.168.1.0/24 link#1 U em0
192.168.1.1 link#1 UHS lo0
192.168.255.0/24 172.16.255.2 UGS ovpns1
192.168.255.1 link#8 UHS lo0
192.168.255.2 link#8 UH ovpns1
Third from the bottom is suspicious. It should not exist at all since that's the openvpn pool subnet.If I add both 10/24 and 20/24 subnets (separated by comma) to the main openvpn configuration they both get routed to the first client to connect, no matter what client specific network I have for each client/site.