OpenVPN Server – How to Configure Without Push Default Gateway

openvpnroute

I need configure my openvpn server to provide some LAN resources, but I don't want route all traffic for my clients.

Here is my sample network description:
My LAN is 192.168.1.0/24. Openvpn network is 192.168.100.0/24.
I add push route 192.168.1.0 255.255.255.0 in my server side configuration. I would like to allow my clients can access 192.168.1.0/24, but not other traffic.

How can I do this from server side configuration?
Is client side configuration the only way to do this?

Best Answer

Simply do not add the redirect-gateway in the client or server configuration and the default gateway will not be changed.