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

    OpenVPN for iOS- tun_builder_error: route is not canonical

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 7.5k 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.
    • C
      costasppc
      last edited by

      Hello!

      I am building a new pfsense alix box for OpenVPN.

      I use a connection with Viscosity, connects fine.

      The same connection with iOS OpenVPN client i get:

      2013-03-03 19:52:00 TUN Error: tun_builder_error: error parsing IPv4 route: [route] [172.16.1.1] [255.255.255.0] : tun_builder_error: route is not canonical

      Notice that I use internal IPs, because I am building the box in my home, so my WAN is a DHCP address (different network) from my home router.

      Best regards

      Kostas

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

        It's telling you that you are specifying the route incorrectly.

        You've got 172.16.1.1/24 in there for a route (or 172.16.1.1 255.255.255.0 in a route statement) but the network address of a /24 is .0, not .1

        So you really need 172.16.1.0/24 in the config.

        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
        • C
          costasppc
          last edited by

          Jimp to the rescue!

          Thank you, that was it. I did not check it because computers were connecting fine.

          Best regards

          Kostas

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