Issue with an automatic gateway assignment
Posted: Sat Mar 12, 2022 1:13 pm
Hello,
I've got a routing issue when establishing connection to an OpenVPN server with the OpenVPN client (3.3.1) on MacOS Monterey (12.2.1) laptop.
When connected to VPN, one of the routes gets an automatically assigned gateway which corresponds to my private IP address (192.168.y.x) in the VPN network:
192.168.y 192.168.y.x
As they both belong to the same subnet, seems like it leads to an infinite loop. On Ubuntu the same VPN configuration (passed through with an ovpn file) results in another gateway assignment and works seamless.
I tried to delete this route and to recreate it manually with the gateway 0.0.0.0 or the gateway of the default destination but got an error:
route: writing to routing socket: Network is unreachable
Also, route change command was tried, but although it didn't throw an error, the gateway was not changed.
I wonder if anybody is familiar with this and maybe knows how to approach it.
Many thanks.
I've got a routing issue when establishing connection to an OpenVPN server with the OpenVPN client (3.3.1) on MacOS Monterey (12.2.1) laptop.
When connected to VPN, one of the routes gets an automatically assigned gateway which corresponds to my private IP address (192.168.y.x) in the VPN network:
192.168.y 192.168.y.x
As they both belong to the same subnet, seems like it leads to an infinite loop. On Ubuntu the same VPN configuration (passed through with an ovpn file) results in another gateway assignment and works seamless.
I tried to delete this route and to recreate it manually with the gateway 0.0.0.0 or the gateway of the default destination but got an error:
route: writing to routing socket: Network is unreachable
Also, route change command was tried, but although it didn't throw an error, the gateway was not changed.
I wonder if anybody is familiar with this and maybe knows how to approach it.
Many thanks.