What's new

Push additional route to openvpn clients

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

atkinsom

Senior Member
Hi,

I'm trying to figure out how to push an additional route to my OpenVpn clients running on some external home devices. I've setup the OpenVpn server on my AC-68u running Merlin software with no issues and everything is working correctly using username/password authentication. I just want an additional static route sent to the clients when they connect rather than creating a persistent route on their windows and mac systems. Can someone guide me on what command to use and where to place this command for server 1 on the router. See the info below I've been adding to the individual clients manually that I want to be pushed from the OpenVpn server. Thanks for any help.

route add 192.168.100.1 mask 255.255.255.255 10.8.0.1 IF 33 -p
 
Last edited:
Depends on the firmware. In the case of Merlin, you can add these routes on a per client basis using the Manage Client-Specific Options section of the OpenVPN server GUI. You need to enable Advanced Settings, enable Manage Client-Specific Options, then "push" that route for the specific client (based on its Common Name on its cert) under Allowed Clients.
 
Finally figured it out using the push command in the custom configuration field. This way you don't have to modify every client config you have out in the field.
push "route 192.168.100.1 255.255.255.255 10.8.0.1 21"
push "route DESTINATIONIP SUBNETMASK GATEWAY METRIC"
upload_2018-8-1_14-37-15.png
 
Similar threads
Thread starter Title Forum Replies Date
R How to route/bridge OpenVPN TUN Client to LAN/BR0? VPN 0

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top