OPENVPN Max routes



  • Hello everyone,

    I have an issue in my OpenVPN server which i can't set more than 100 routes to it, as per the following log:

    openvpn[73497]: OpenVPN ROUTE: cannot add more than 100 routes – please increase the max-routes option in the client

    The problem is, if i try to set the parameter –max-routes to "VPN/OpenVPN/Servers/Edit - > Custom Options", it will append the parameter to the end of the config file, then i get this message:

    openvpn[70762]: Options error: –max-routes must to be specifed before any route/route-ipv6/redirect-gateway option

    I couldn't find anything related to this with the search function of the forum, or anything on the internet to insert this earlier in the config file.
    Could you guys give me some guidance with this?

    Thanks in advance.

    Best Regards



  • Would you be willing to also post this on the OpenVPN mailing list?
    https://sourceforge.net/projects/openvpn/lists/openvpn-users


  • Rebel Alliance Developer Netgate

    Why do you want to use that option in that context?

    You could simply not enable any options that would put those directives in the config (e.g. don't set redirect-gateway, don't specify any local or remote networks), and then add max-routes and put in all of the directives manually after that.


Log in to reply