Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    OPENVPN Max routes

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 3 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      elopes.abreu
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • PippinP Offline
        Pippin
        last edited by

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

        I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
        Halton Arp

        1 Reply Last reply Reply Quote 0
        • jimpJ Offline
          jimp Rebel Alliance Developer Netgate
          last edited by

          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.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.