I would like my OpenVPN server to push a route down to the client with a different default gateway.

Specifically, my OpenVPN server has an internal IP address of, and I would like it to push a route of using gateway

Is it possible to do this by specifying a push route in the server config file?

  • Are you saying you want to push "route" to the client, and then the VPN clients traffic to have a different default gateway ( on the VPN server network? – Drav Sloan Sep 17 '13 at 16:02
  • @DravSloan I want the client to access IP addresses on the network via, but I don't want to change any of the other routing behavior of the VPN. – Lorin Hochstein Sep 17 '13 at 16:46
  • @josten I tried doing: push "route", no go. – Lorin Hochstein Sep 17 '13 at 17:03
  • 2
    @LorinHochstein that should probably be push route " 1" – Drav Sloan Sep 17 '13 at 17:12
  • @josten Do you want post that answer, seeing as you suggested it (I just filled in the blanks...) – Drav Sloan Sep 17 '13 at 18:12
push "route 1"

From the OpenVPN man page:

--route network/IP [netmask] [gateway] [metric]

This tells the server config to "push" to the client, the route command which sets a networking route of the subnet via the gateway with a metric of 1. Metrics are used to give "preference" if multiple routes exist (such that the lowest cost wins).

  • 3
    push route " 1" made the openvpn parser crash. Had to specify push "route 1" instead. – wget Jun 1 '17 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.