OpenVPN Topology Subnet Configuration Migration
Posted: Mon Feb 14, 2022 7:29 pm
viewtopic.php?f=6&t=33728&p=104949#p104949
As seen above, I migrated for the most part from the now deprecated `net30` to the new default `subnet` network topology.
So far, migration is almost complete. There is only one thing that is left regarding routes created, when the client starts up and connects.
You can get the client and server config from above. The difference in the server config is now, that `push "route 10.35.0.0 255.255.255.0"` is commented out and the `topology subnet` option is added.
Due to the topology change, the custom client configuration had to be changed, as well.
Now the issue looks like this. When the client starts up and connects, the routing table on the client looks like this:
But it needs to look like this:
`10.35.0.195` being the client's native IP address (`eth0`).
`10.190.0.12` being the client's VPN IP address (`tun0`).
I am not sure what configuration I have to change to make the routes appear correct, even after the client has started up and connected. I am not sure, where and which routes are pushed where and from.
It would be nice, if I could be pointed into the direction of where I need to adjust the configuration, to make the routes appear correctly, as shown above.
As seen above, I migrated for the most part from the now deprecated `net30` to the new default `subnet` network topology.
So far, migration is almost complete. There is only one thing that is left regarding routes created, when the client starts up and connects.
You can get the client and server config from above. The difference in the server config is now, that `push "route 10.35.0.0 255.255.255.0"` is commented out and the `topology subnet` option is added.
Due to the topology change, the custom client configuration had to be changed, as well.
Code: Select all
ifconfig-push 10.190.0.12 255.255.255.252Code: Select all
default via 10.35.0.1 dev eth0
10.35.0.0/24 via 10.190.0.12 dev tun0
10.35.0.0/16 via 10.35.0.1 dev eth0
10.190.0.0/16 via 10.190.0.12 dev tun0 Code: Select all
default via 10.35.0.1 dev eth0
10.35.0.0/24 dev eth0 proto kernel scope link src 10.35.0.195
10.35.0.0/16 via 10.35.0.1 dev eth0
10.190.0.0/16 via 10.190.0.12 dev tun0 `10.190.0.12` being the client's VPN IP address (`tun0`).
I am not sure what configuration I have to change to make the routes appear correct, even after the client has started up and connected. I am not sure, where and which routes are pushed where and from.
It would be nice, if I could be pointed into the direction of where I need to adjust the configuration, to make the routes appear correctly, as shown above.