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

    Problems between iphone and dhcp?

    Scheduled Pinned Locked Moved General pfSense Questions
    56 Posts 5 Posters 10.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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @stephenw10
      last edited by

      @stephenw10 I don't see how even if dhcp was off how that could effect anything in real time..

      Could it be the issue with high latency on filter reload of lots of rules? There is a redmine about that and patch available.. But does changing dhcp reload the firewall rules?

      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
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Yup, I thought that but it would affect all clients, not just iphones.

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

          @stephenw10 maybe it is and he is just noticing it on the iphones.

          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 2
          • E
            edpbettinelli @stephenw10
            last edited by

            @stephenw10 said in Problems between iphone and dhcp?:

            How exactly does that present? How are you testing? Anything logged in the dhcp log?

            it seems that the problem is related to the operations that reload dhcp and also dns resolver. With the company stopped, I try, for example, to reserve a dhcp with Apply and only wifi iphone systematically disappears. At the log level I don't see anything

            stephenw10S 1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator @edpbettinelli
              last edited by

              @edpbettinelli said in Problems between iphone and dhcp?:

              and only wifi iphone systematically disappears.

              Disappears from where?

              Are you seeing disconnections on the iphones?

              E 1 Reply Last reply Reply Quote 0
              • E
                edpbettinelli @stephenw10
                last edited by

                @stephenw10 Sorry i meant iphones respond to ping with other devices in the same vlan but pfsense does not respond to ping for at least 1 minute\

                S stephenw10S 2 Replies Last reply Reply Quote 0
                • S
                  SteveITS Galactic Empire @edpbettinelli
                  last edited by

                  @edpbettinelli said in Problems between iphone and dhcp?:

                  pfsense does not respond to ping for at least 1 minute

                  During that minute, does it respond to pings on other interfaces?

                  Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                  When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                  Upvote 👍 helpful posts!

                  E 1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator @edpbettinelli
                    last edited by

                    @edpbettinelli said in Problems between iphone and dhcp?:

                    but pfsense does not respond to ping

                    From the iphones or from other devices? Or both?

                    1 Reply Last reply Reply Quote 0
                    • E
                      edpbettinelli @SteveITS
                      last edited by

                      @steveits said in Problems between iphone and dhcp?:

                      During that minute, does it respond to pings on other interfaces?

                      yes, even non-iphone devices on the same vlan respond to pfsense ping

                      johnpozJ S 3 Replies Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator @edpbettinelli
                        last edited by

                        @edpbettinelli are you saying you can not ping an iphone by name when unbound is restarting - this would make sense.

                        Or are you saying iphone can not ping pfsense IP on the iphone vlan? By IP? By name?

                        If unbound is restarting - then yeah you could have issues with resolving anything by name.. But that should not effect ping by IP..

                        Registering dhcp leases in unbound has been problematic for quite some time, because any time a lease is redone or issued it forces a restart of unbound, 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

                        E 1 Reply Last reply Reply Quote 0
                        • S
                          SteveITS Galactic Empire @edpbettinelli
                          last edited by

                          @edpbettinelli said in Problems between iphone and dhcp?:

                          even non-iphone devices on the same vlan respond to pfsense ping

                          That makes me think it's more of a wireless+phone issue than a pfSense issue.

                          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                          Upvote 👍 helpful posts!

                          1 Reply Last reply Reply Quote 0
                          • E
                            edpbettinelli @johnpoz
                            last edited by

                            @johnpoz said in Problems between iphone and dhcp?:

                            are you saying you can not ping an iphone by name when unbound is restarting - this would make sense.
                            Or are you saying iphone can not ping pfsense IP on the iphone vlan? By IP? By name?
                            If unbound is restarting - then yeah you could have issues with resolving anything by name.. But that should not effect ping by IP..
                            Registering dhcp leases in unbound has been problematic for quite some time, because any time a lease is redone or issued it forces a restart of unbound, etc.

                            the effect is that all apps are blocked, with an app on iphone i verified that ping using ip. other iphone or voip phones on the same vlan respond to ping, while if in that minute I try to ping pfsense no response.

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

                              @edpbettinelli ok I just started a ping to my iphone IP 192.168.2.198

                              I restarted dhcp, I even did a manual reload of all the firewall rules..

                              Not 1 ping dropped.

                              Ping statistics for 192.168.2.198:
                                  Packets: Sent = 124, Received = 124, Lost = 0 (0% loss),
                              Approximate round trip times in milli-seconds:
                                  Minimum = 2ms, Maximum = 322ms, Average = 73ms
                              Control-C
                              

                              from a box on another vlan to the wifi vlan the iphone is on...

                              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

                              E 1 Reply Last reply Reply Quote 0
                              • E
                                edpbettinelli @johnpoz
                                last edited by

                                @johnpoz sorry I didn't understand, did you ping from iphone to your gateway or from pfsense to iphone?
                                I see the problem from iphone to pfsense

                                Sorry for my english

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  So during the failure you are still able to ping pfSense from other devices?

                                  If pfSense itself stops responding then it does sounds like know pf reload issue:
                                  https://redmine.pfsense.org/issues/12827

                                  Steve

                                  E 1 Reply Last reply Reply Quote 0
                                  • E
                                    edpbettinelli @stephenw10
                                    last edited by

                                    @stephenw10 I confirm that with all other devices except iphone pfsense does not lose a ping. it seems like some strange management of wifi by apple

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

                                      @edpbettinelli ok on my iphone.. Pinging pfsense IP on that vlan.

                                      Restart unbound, reload firewall filters, restarted dhcp, etc..

                                      Not a ping lost

                                      PNG image.png

                                      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
                                      • stephenw10S
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        Mmm, there's really no reason the iphone should react at all to dhcpd restarting.

                                        Can we see your test results so we know exactly what you're seeing?

                                        Steve

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

                                          @stephenw10 said in Problems between iphone and dhcp?:

                                          there's really no reason the iphone should react at all to dhcpd restarting.

                                          exactly - the only thing I could see having any possible effect at all is a reload of the firewall rules.. if that got hung up then maybe ok, but states are not flushed on a reload, I don't think that is a default setting - mine don't flush the states, etc..

                                          So if you started a ping just as the firewall rules were reloading I could see maybe an issue?

                                          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

                                          E 1 Reply Last reply Reply Quote 0
                                          • E
                                            edpbettinelli @johnpoz
                                            last edited by

                                            @johnpoz Last night I tried from home in vpn to reload the rules I am attaching the ping screen to pfsense.
                                            vpn.JPG
                                            vlandati.JPG
                                            sorvegl.JPG
                                            There was an iphone connected which never lost the ping during all my tests (the ping, however, was from my pc in vpn to the iphone).
                                            This morning I tried to activate a dhcp on a test vlan and my iphone crashed as usual,
                                            while the rest of the devices had no problems (same behavior of the attached snap).
                                            I forgot the iPhones are managed by a mdm in the cloud.
                                            Other tests I will be able to do only when the company is stopped.
                                            Do you have tests to recommend to me to get more data to find the cause of the problem?
                                            Thank you very much for your support, I will keep you updated on the developments.
                                            Luca Bottini

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