Page 1 of 1

Two subnets

Posted: Thu Jan 05, 2023 10:26 am
by beerox1
I have two subnets 192.168.0.0/16 and 10.10.10.0/24. When a linux machine(192.168.5.2) connects to the vpn, it can only be connected from the subnet 192.168.0.0/16 and not from the other one.
Is it possible to set the configuration file of the openvpn client so that it knows that, for example, 10.10.10.7 is a computer in the local network?

Thanks in advance

Re: Two subnets

Posted: Thu Jan 05, 2023 12:25 pm
by beerox1
I added the following lines to the config file and it seems to work, thank you

route 10.10.10.0 255.255.255.0 net_gateway