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

    OpenVPN Connection to iOS not working since update from 2.4.5p1 to 2.5.2

    Scheduled Pinned Locked Moved OpenVPN
    16 Posts 3 Posters 2.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.
    • H
      highc @Gertjan
      last edited by

      @gertjan

      Thx, so this confirms that routing is broken here since the update.

      I just googled the command for showing the routing table, and it seems that there is something missing for the OpenVPN net 10.0.10.0/24:

       netstat -r
      Routing tables
      
      Internet:
      Destination        Gateway            Flags     Netif Expire
      default            p3e9bf55d.dip0.t-i UGS      pppoe0
      10.0.11.0/24       link#16            U        ovpns2
      10.0.11.1          link#16            UHS         lo0
      10.8.0.0/24        gateway            UGS       lagg0
      10.9.0.0/24        gateway            UGS       lagg0
      p3e9bf55d.dip0.t-i link#14            UH       pppoe0
      p5b17515d.dip0.t-i link#14            UHS         lo0
      localhost          link#6             UH          lo0
      192.168.1.0/24     link#9             U         lagg0
      firewall           link#9             UHS         lo0
      192.168.2.0/24     gateway            UGS       lagg0
      192.168.3.0/24     link#10            U      lagg0.30
      192.168.3.1        link#10            UHS         lo0
      192.168.4.0/24     link#3             U          igb0
      192.168.4.2        link#3             UHS         lo0
      192.168.5.0/24     link#11            U      lagg0.50
      192.168.5.1        link#11            UHS         lo0
      192.168.6.0/24     link#12            U      lagg0.60
      192.168.6.1        link#12            UHS         lo0
      192.168.7.0/24     link#13            U      lagg0.70
      192.168.7.1        link#13            UHS         lo0
      

      Would you happen to know how to fix this?

      pfSense+ 24.03 on Netgate SG-2100 (replaced SG-2440)
      pfSense 2.6 on Super Micro 5018D-FN4T (retired)

      GertjanG johnpozJ 2 Replies Last reply Reply Quote 0
      • GertjanG
        Gertjan @highc
        last edited by

        @highc said in OpenVPN Connection to iOS not working since update from 2.4.5p1 to 2.5.2:

        Would you happen to know how to fix this?

        Undo whatever you did, related to routing ?
        ( honstly, I don't know how to 'read' a routing table to see what needs to be done where ).

        My IPv4 routing table is pretty straight forward :

        04cf3ec8-f099-4c9b-a392-150b68157ef6-image.png

        As I'm using :
        a upstream ISP router using 192.168.10.1 - pfSense WAN is 192.168.1.3
        pfPblockerNG uses 10.10.10.1
        I consider my routes 'simple'.

        You can clearly see 192.168.3.0 being the "OpenVPN" interface.

        What you could do :
        Take a know, recent ( !! - as it needs to be OpenVPN 2.5.2, that is the openVPN version, not the pfSense version that happens to be the same right now ) Youtube Video (example : Lawrence ?) and use that to make a working connection.
        When it works, add you own changes 'up until it fails'. Then you know what the issue is.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        H 1 Reply Last reply Reply Quote 0
        • H
          highc @Gertjan
          last edited by

          @gertjan said in OpenVPN Connection to iOS not working since update from 2.4.5p1 to 2.5.2:

          Undo whatever you did, related to routing ?

          Just to be clear: The only thing I did, was upgrade vom 2.4.5p1. It worked there. Since them, I'm trying to get back to the state I had with 2.4.5p1.

          pfSense+ 24.03 on Netgate SG-2100 (replaced SG-2440)
          pfSense 2.6 on Super Micro 5018D-FN4T (retired)

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @highc
            last edited by

            @highc

            The (a) OpenVPN setup probably needs some changes as many Open-VPN parameters changed when shifted from 2.4.x to 2.5.y.

            I advise you to read what you mentioned :

            @highc said in OpenVPN Connection to iOS not working since update from 2.4.5p1 to 2.5.2:

            (as available from here.

            There is a big :

            118df16d-32a0-41e8-a49b-819f6024054d-image.png

            section.

            Don't forget to export a newer opvn file for the clients.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            H 1 Reply Last reply Reply Quote 0
            • H
              highc @Gertjan
              last edited by highc

              @gertjan
              Ok, I did not just point to that section, but I actually read it ("of course, I'm tempted to say"). It might be that ...

              Linux-specific features
              
                  - VRF support
                  - Netlink integration (OpenVPN no longer needs to execute ifconfig/route or ip commands)
              
              

              ... the netlink part is related to my problem. But there is no config option on this in pfSense. Neither would I know how to debug that part in pfSense. I'm happy to execute commands, but it would be great, if someone with a bit of background knowledge of how this works in pfSense could help me.

              And as I said above, I did recreate the client config, exported it, and imported it again into the client. Doesn't work. I could redo the whole thing now for the third again and hope for a different outcome this time. But that sounds like a very desperate approach.

              There are, by the way, open bug reports for OpenVPN related to pushing routes (e.g., here and here). But whether or not that is related to my problem where I can't even ping the OpenVPN client itself from pfSense, I don't know.

              pfSense+ 24.03 on Netgate SG-2100 (replaced SG-2440)
              pfSense 2.6 on Super Micro 5018D-FN4T (retired)

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @highc
                last edited by

                @highc

                You entered this :

                push "route 192.168.1.0 255.255.255.0"
                 push "route 192.168.2.0 255.255.255.0"
                 push "route 192.168.2.0 255.255.255.0"
                 push "route 192.168.3.0 255.255.255.0"
                

                ?

                ( and why a leading space the last 3 lines ?)

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @highc
                  last edited by johnpoz

                  @highc said in OpenVPN Connection to iOS not working since update from 2.4.5p1 to 2.5.2:

                  something missing for the OpenVPN net 10.0.10.0/24:

                  You would not push the tunnel network you setup.. These should be in the routing table of pfsense, if openvpn is running.

                  example I use 10.0.8/24 and 10.0.200.248/29 in my tunnel networks.

                  tunnels.jpg

                  routing table on pfsense shows these..

                  routes.jpg

                  There really is little reason to use push route, networks you want your clients to get to should be listed in the local networks of your vpn

                  When not using the force gateway parameter

                  force.jpg

                  Notice if I disable the vpn instance, that route is no longer listed in pfsense for that tunnel network.

                  disabled.jpg

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  GertjanG H 2 Replies Last reply Reply Quote 0
                  • GertjanG
                    Gertjan @johnpoz
                    last edited by

                    @johnpoz said in OpenVPN Connection to iOS not working since update from 2.4.5p1 to 2.5.2:

                    You would not push the tunnel network you setup.

                    Did I miss that ?
                    He isn't pushing "10.0.10.0 255.255.255.0" (right ?)

                    As I have a

                    server 192.168.3.0 255.255.255.0
                    

                    because my tunnel is 192.168.3.0/24

                    @highc has

                    server 10.0.10.0 255.255.255.0
                    

                    as 10.0.10.0 is is tunnel.

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

                    johnpozJ 1 Reply Last reply Reply Quote 0
                    • H
                      highc @johnpoz
                      last edited by

                      Ok, thanks. I've now configured the VPN to route all IPv4 traffic via the VPN. That works. Will leave it at that. 😀

                      pfSense+ 24.03 on Netgate SG-2100 (replaced SG-2440)
                      pfSense 2.6 on Super Micro 5018D-FN4T (retired)

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator @Gertjan
                        last edited by

                        @gertjan said in OpenVPN Connection to iOS not working since update from 2.4.5p1 to 2.5.2:

                        He isn't pushing "10.0.10.0 255.255.255.0" (right ?)

                        No he isn't pushing it - but you wouldn't need too.. The problem I saw with his configuration was that pfsense showed no route for his tunnel.

                        tunnel.jpg

                        So something glitched or his instance wasn't actually running as I showed. If the instance is running there should be routes on pfsense for that tunnel network. See where I tuned off my instance and the route went away.

                        My point about pushing as well - is there is really no reason to have to add those. As long as you list them as local networks they are auto pushed.. You don't need to add them to the options box, etc.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

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