Different routing for different users
Posted: Mon Feb 22, 2021 1:41 pm
Hi All.
I have the following network configuration and task:

1. Network A and Network B should see one each other.
2. Network A should have internet access through Router, not VPN.
3. Network B should have internet access (does not matter how really).
4. Router acts as gateway, DHCP and DNS for Network A.
This task was easily solved using OpenVPN with client-config-dir for different users (routing was set for each individually)
Now the VPN is OpenVPN AS and I have a problem because I cannot find client-config-dir implementation in it.
So the only I found is manually edit clien.ovpn adding two lines:I don't like this approach as it makes necessary to edit client config files manually.
Is there any other way to implement client-config-dir functionality in OpenVPN AS? I really miss this feature from free product.
I have the following network configuration and task:

1. Network A and Network B should see one each other.
2. Network A should have internet access through Router, not VPN.
3. Network B should have internet access (does not matter how really).
4. Router acts as gateway, DHCP and DNS for Network A.
This task was easily solved using OpenVPN with client-config-dir for different users (routing was set for each individually)
Now the VPN is OpenVPN AS and I have a problem because I cannot find client-config-dir implementation in it.
So the only I found is manually edit clien.ovpn adding two lines:
Code: Select all
pull-filter ignore redirect-gateway
route 172.27.224.0 255.255.240.0
Is there any other way to implement client-config-dir functionality in OpenVPN AS? I really miss this feature from free product.