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

    IPhone Tethering to pfSense

    Scheduled Pinned Locked Moved Hardware
    64 Posts 7 Posters 17.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.
    • E
      eiger3970
      last edited by eiger3970

      Wow, a lot of output. It's beyond my understanding.

      [2.4.4-RELEASE][admin@pfSense.localdomain]/.ssh: usbconfig -d ugen4.2 dump_all_desc
      ugen4.2: <Apple Inc. iPhone> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
      
        bLength = 0x0012 
        bDescriptorType = 0x0001 
        bcdUSB = 0x0200 
        bDeviceClass = 0x0000  <Probed by interface class>
        bDeviceSubClass = 0x0000 
        bDeviceProtocol = 0x0000 
        bMaxPacketSize0 = 0x0040 
        idVendor = 0x05ac 
        idProduct = 0x12a8 
        bcdDevice = 0x0530 
        iManufacturer = 0x0001  <Apple Inc.>
        iProduct = 0x0002  <iPhone>
        iSerialNumber = 0x0003  <redactedFromPublicViewByForumPostingAuthor>
        bNumConfigurations = 0x0004 
      
       Configuration index 0
      
          bLength = 0x0009 
          bDescriptorType = 0x0002 
          wTotalLength = 0x0027 
          bNumInterfaces = 0x0001 
          bConfigurationValue = 0x0001 
          iConfiguration = 0x0005  <PTP>
          bmAttributes = 0x00c0 
          bMaxPower = 0x00fa 
      
          Interface 0
            bLength = 0x0009 
            bDescriptorType = 0x0004 
            bInterfaceNumber = 0x0000 
            bAlternateSetting = 0x0000 
            bNumEndpoints = 0x0003 
            bInterfaceClass = 0x0006  <Still imaging>
            bInterfaceSubClass = 0x0001 
            bInterfaceProtocol = 0x0001 
            iInterface = 0x0000  <no string>
      
           Endpoint 0
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0002  <OUT>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x000a 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
           Endpoint 1
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0081  <IN>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x000a 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
           Endpoint 2
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0083  <IN>
              bmAttributes = 0x0003  <INTERRUPT>
              wMaxPacketSize = 0x0040 
              bInterval = 0x000a 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
      
      
       Configuration index 1
      
          bLength = 0x0009 
          bDescriptorType = 0x0002 
          wTotalLength = 0x0095 
          bNumInterfaces = 0x0003 
          bConfigurationValue = 0x0002 
          iConfiguration = 0x0006  <iPod USB Interface>
          bmAttributes = 0x00c0 
          bMaxPower = 0x00fa 
      
          Interface 0
            bLength = 0x0009 
            bDescriptorType = 0x0004 
            bInterfaceNumber = 0x0000 
            bAlternateSetting = 0x0000 
            bNumEndpoints = 0x0000 
            bInterfaceClass = 0x0001  <Audio device>
            bInterfaceSubClass = 0x0001 
            bInterfaceProtocol = 0x0000 
            iInterface = 0x0000  <no string>
      
            Additional Descriptor
      
            bLength = 0x09
            bDescriptorType = 0x24
            bDescriptorSubType = 0x01
             RAW dump: 
             0x00 | 0x09, 0x24, 0x01, 0x00, 0x01, 0x1e, 0x00, 0x01, 
             0x08 | 0x01
      
            Additional Descriptor
      
            bLength = 0x0c
            bDescriptorType = 0x24
            bDescriptorSubType = 0x02
             RAW dump: 
             0x00 | 0x0c, 0x24, 0x02, 0x01, 0x01, 0x02, 0x02, 0x02, 
             0x08 | 0x03, 0x00, 0x00, 0x00
      
      
            Additional Descriptor
      
            bLength = 0x09
            bDescriptorType = 0x24
            bDescriptorSubType = 0x03
             RAW dump: 
             0x00 | 0x09, 0x24, 0x03, 0x02, 0x01, 0x01, 0x01, 0x01, 
             0x08 | 0x00
      
      
          Interface 1
            bLength = 0x0009 
            bDescriptorType = 0x0004 
            bInterfaceNumber = 0x0001 
            bAlternateSetting = 0x0000 
            bNumEndpoints = 0x0000 
            bInterfaceClass = 0x0001  <Audio device>
            bInterfaceSubClass = 0x0002 
            bInterfaceProtocol = 0x0000 
            iInterface = 0x0000  <no string>
      
      
          Interface 1 Alt 1
            bLength = 0x0009 
            bDescriptorType = 0x0004 
            bInterfaceNumber = 0x0001 
            bAlternateSetting = 0x0001 
            bNumEndpoints = 0x0001 
            bInterfaceClass = 0x0001  <Audio device>
            bInterfaceSubClass = 0x0002 
            bInterfaceProtocol = 0x0000 
            iInterface = 0x0000  <no string>
      
            Additional Descriptor
      
            bLength = 0x07
            bDescriptorType = 0x24
            bDescriptorSubType = 0x01
             RAW dump: 
             0x00 | 0x07, 0x24, 0x01, 0x02, 0x01, 0x01, 0x00
      
      
            Additional Descriptor
      
            bLength = 0x23
            bDescriptorType = 0x24
            bDescriptorSubType = 0x02
             RAW dump: 
             0x00 | 0x23, 0x24, 0x02, 0x01, 0x02, 0x02, 0x10, 0x09, 
             0x08 | 0x40, 0x1f, 0x00, 0x11, 0x2b, 0x00, 0xe0, 0x2e, 
             0x10 | 0x00, 0x80, 0x3e, 0x00, 0x22, 0x56, 0x00, 0xc0, 
             0x18 | 0x5d, 0x00, 0x00, 0x7d, 0x00, 0x44, 0xac, 0x00, 
             0x20 | 0x80, 0xbb, 0x00
      
      
           Endpoint 0
              bLength = 0x0009 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0081  <IN>
              bmAttributes = 0x0001  <ISOCHRONOUS>
              wMaxPacketSize = 0x00c0 
              bInterval = 0x0004 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
            Additional Descriptor
      
            bLength = 0x07
            bDescriptorType = 0x25
            bDescriptorSubType = 0x01
             RAW dump: 
             0x00 | 0x07, 0x25, 0x01, 0x01, 0x00, 0x00, 0x00
      
      
      
          Interface 2
            bLength = 0x0009 
            bDescriptorType = 0x0004 
            bInterfaceNumber = 0x0002 
            bAlternateSetting = 0x0000 
            bNumEndpoints = 0x0001 
            bInterfaceClass = 0x0003  <HID device>
            bInterfaceSubClass = 0x0000 
            bInterfaceProtocol = 0x0000 
            iInterface = 0x0000  <no string>
      
            Additional Descriptor
      
            bLength = 0x09
            bDescriptorType = 0x21
            bDescriptorSubType = 0x11
             RAW dump: 
             0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0xd0, 
             0x08 | 0x00
      
           Endpoint 0
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0083  <IN>
              bmAttributes = 0x0003  <INTERRUPT>
              wMaxPacketSize = 0x0040 
              bInterval = 0x0001 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
      
      
       Configuration index 2
      
          bLength = 0x0009 
          bDescriptorType = 0x0002 
          wTotalLength = 0x003e 
          bNumInterfaces = 0x0002 
          bConfigurationValue = 0x0003 
          iConfiguration = 0x0007  <PTP + Apple Mobile Device>
          bmAttributes = 0x00c0 
          bMaxPower = 0x00fa 
      
          Interface 0
            bLength = 0x0009 
            bDescriptorType = 0x0004 
            bInterfaceNumber = 0x0000 
            bAlternateSetting = 0x0000 
            bNumEndpoints = 0x0003 
            bInterfaceClass = 0x0006  <Still imaging>
            bInterfaceSubClass = 0x0001 
            bInterfaceProtocol = 0x0001 
            iInterface = 0x0000  <no string>
      
           Endpoint 0
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0002  <OUT>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x000a 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
           Endpoint 1
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0081  <IN>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x000a 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
           Endpoint 2
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0083  <IN>
              bmAttributes = 0x0003  <INTERRUPT>
              wMaxPacketSize = 0x0040 
              bInterval = 0x000a 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
      
          Interface 1
            bLength = 0x0009 
            bDescriptorType = 0x0004 
            bInterfaceNumber = 0x0001 
            bAlternateSetting = 0x0000 
            bNumEndpoints = 0x0002 
            bInterfaceClass = 0x00ff  <Vendor specific>
            bInterfaceSubClass = 0x00fe 
            bInterfaceProtocol = 0x0002 
            iInterface = 0x000d  <Apple USB Multiplexor>
      
           Endpoint 0
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0004  <OUT>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x0000 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
           Endpoint 1
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0085  <IN>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x0000 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
      
      
       Configuration index 3
      
          bLength = 0x0009 
          bDescriptorType = 0x0002 
          wTotalLength = 0x0075 
          bNumInterfaces = 0x0003 
          bConfigurationValue = 0x0004 
          iConfiguration = 0x0008  <PTP + Apple Mobile Device + Apple USB Ethernet>
          bmAttributes = 0x00c0 
          bMaxPower = 0x00fa 
      
          Interface 0
            bLength = 0x0009 
            bDescriptorType = 0x0004 
            bInterfaceNumber = 0x0000 
            bAlternateSetting = 0x0000 
            bNumEndpoints = 0x0003 
            bInterfaceClass = 0x0006  <Still imaging>
            bInterfaceSubClass = 0x0001 
            bInterfaceProtocol = 0x0001 
            iInterface = 0x0000  <no string>
      
           Endpoint 0
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0002  <OUT>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x000a 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
           Endpoint 1
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0081  <IN>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x000a 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
           Endpoint 2
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0083  <IN>
              bmAttributes = 0x0003  <INTERRUPT>
              wMaxPacketSize = 0x0040 
              bInterval = 0x000a 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
      
          Interface 1
            bLength = 0x0009 
            bDescriptorType = 0x0004 
            bInterfaceNumber = 0x0001 
            bAlternateSetting = 0x0000 
            bNumEndpoints = 0x0002 
            bInterfaceClass = 0x00ff  <Vendor specific>
            bInterfaceSubClass = 0x00fe 
            bInterfaceProtocol = 0x0002 
            iInterface = 0x000d  <Apple USB Multiplexor>
      
           Endpoint 0
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0004  <OUT>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x0000 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
           Endpoint 1
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0085  <IN>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x0000 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
      
          Interface 2
            bLength = 0x0009 
            bDescriptorType = 0x0004 
            bInterfaceNumber = 0x0002 
            bAlternateSetting = 0x0000 
            bNumEndpoints = 0x0000 
            bInterfaceClass = 0x00ff  <Vendor specific>
            bInterfaceSubClass = 0x00fd 
            bInterfaceProtocol = 0x0001 
            iInterface = 0x0000  <no string>
      
      
          Interface 2 Alt 1
            bLength = 0x0009 
            bDescriptorType = 0x0004 
            bInterfaceNumber = 0x0002 
            bAlternateSetting = 0x0001 
            bNumEndpoints = 0x0002 
            bInterfaceClass = 0x00ff  <Vendor specific>
            bInterfaceSubClass = 0x00fd 
            bInterfaceProtocol = 0x0001 
            iInterface = 0x0000  <no string>
      
           Endpoint 0
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0086  <IN>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x0000 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
           Endpoint 1
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0005  <OUT>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x0000 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
      
          Interface 2 Alt 2
            bLength = 0x0009 
            bDescriptorType = 0x0004 
            bInterfaceNumber = 0x0002 
            bAlternateSetting = 0x0002 
            bNumEndpoints = 0x0002 
            bInterfaceClass = 0x00ff  <Vendor specific>
            bInterfaceSubClass = 0x00fd 
            bInterfaceProtocol = 0x0001 
            iInterface = 0x0000  <no string>
      
           Endpoint 0
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0086  <IN>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x0000 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
           Endpoint 1
              bLength = 0x0007 
              bDescriptorType = 0x0005 
              bEndpointAddress = 0x0005  <OUT>
              bmAttributes = 0x0002  <BULK>
              wMaxPacketSize = 0x0200 
              bInterval = 0x0000 
              bRefresh = 0x0000 
              bSynchAddress = 0x0000 
      
      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        The important part appears to be this though:

        Configuration index 3
        
            bLength = 0x0009 
            bDescriptorType = 0x0002 
            wTotalLength = 0x0075 
            bNumInterfaces = 0x0003 
            bConfigurationValue = 0x0004 
            iConfiguration = 0x0008  <PTP + Apple Mobile Device + Apple USB Ethernet>
            bmAttributes = 0x00c0 
            bMaxPower = 0x00fa 
        

        It needs to be using index 3. Try:
        usbconfig -d ugen4.2 set_config 3

        Steve

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

          @eiger3970 said in IPhone Tethering to pfSense:

          idVendor = 0x05ac
          idProduct = 0x12a8

          That looks like it should be recognised as an iphone5 actually:
          https://github.com/pfsense/FreeBSD-src/blob/RELENG_2_4_4/sys/dev/usb/usbdevs#L1168

          1 Reply Last reply Reply Quote 1
          • E
            eiger3970
            last edited by eiger3970

            Oh wow!
            pfSense GUI > Interfaces > Interface Assignments > shows Available network ports: ue0

            I will try to follow a GUI guide now for the final setup.

            Yes, the USB device is an iPhone 5C.

            'It' needs to be using index 3...is it referring to the iPhone or pfSense?

            1 Reply Last reply Reply Quote 0
            • E
              eiger3970
              last edited by eiger3970

              Ok, pfSense reboot needs the setup run each time. I won't be rebooting the router much, so that's ok, until perhaps the kernel module if_ipheth.ko udates the code?
              I.e.:
              usbconfig -d ugen4.2 set_config 3.

              So, running the GUI:
              pfSense 2.4.4-RELEASE-p2 > Interfaces > Assignments > Add ue0 (Ma:cA:dd:re:ss:00) > OPT1 ue0 appears > Save > Interfaces > OPT1 > General Configuration > Enable: tick Enable interface > IPv4 Configuration Type: DHCP > Save > Apply Changes > System > Routing > Gateways > OPT1_DHCP should be Default > pfSense shell: netstat -r > Enter > problem as ue0 is in Internet 6 and not in Internet?

              1 Reply Last reply Reply Quote 0
              • E
                eiger3970
                last edited by

                If it helps, here are my network topologies from Ethernet modem to USB modem.
                Ethernet modem:
                alt text

                USB modem:
                alt text

                Perhaps the USB modem topology needs the net0 = vmbr1 to be updated to OPT1 = vmbr1?

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

                  Ok great if config index 3 works you can have that set every time at boot using a usb quirk
                  https://www.freebsd.org/cgi/man.cgi?query=usb_quirk

                  Add to /boot/loader.conf.local:
                  hw.usb.quirk.0="0x05ac 0x12a8 0 0xffff UQ_CFG_INDEX_3"

                  There real issue with this type of setup is that if the phone switches off or is unplugged or in some other way is no longer present and you reboot pfSense it will fail to boot. It will stop at the interfaces assign screen because it has ue0 in it's config and it isn't there.

                  Steve

                  1 Reply Last reply Reply Quote 1
                  • E
                    eiger3970
                    last edited by eiger3970

                    Thank you, that works after a reboot.
                    I updated file /boot/loader.conf, there was not file /boot/loader.conf.local.

                    So, the final thing is configuring pfSense GUI to pass data.
                    Interfaces > Assignments > OPT1 ue0 (53:f9:38:33:18:4f).
                    Interfaces > OPT > Enabled interface. IPv4 Configuration Type: DHCP.
                    System > Routing > Gateways > OPT1_DHCP is Default (IPv4).
                    Dashboard > Interfaces > OPT1 > green up arrow with IP 0.0.0.0.

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

                      Yeah, you will have to create the .local file but you should put both lines in there. The standard loader.conf file can be overwritten by changes in pfSense.

                      If it's not pulling an IP address that would seem to be some setting in the iphone. Is tethering actually enabled there?
                      Does it work as a wireless hotspot?

                      Steve

                      1 Reply Last reply Reply Quote 1
                      • E
                        eiger3970
                        last edited by eiger3970

                        Oh, thank you.
                        Done.

                        Tethering is enabled. No wifi on the hypervisor.
                        I'll check the hardware tomorrow.

                        [2.4.4-RELEASE][admin@pfSense.localdomain]/boot: netstat -r
                        Routing tables
                        
                        Internet:
                        Destination        Gateway            Flags     Netif Expire
                        0.0.0.0/8          link#1             U        vtnet0
                        localhost          link#4             UH          lo0
                        192.168.1.0/24     link#2             U        vtnet1
                        pfSense            link#2             UHS         lo0
                        
                        Internet6:
                        Destination        Gateway            Flags     Netif Expire
                        localhost          link#4             UH          lo0
                        fe80::%vtnet0/64   link#1             U        vtnet0
                        fe80::4063:7cff:fe link#1             UHS         lo0
                        fe80::%vtnet1/64   link#2             U        vtnet1
                        fe80::a42d:d5ff:fe link#2             UHS         lo0
                        fe80::%lo0/64      link#4             U           lo0
                        fe80::1%lo0        link#4             UHS         lo0
                        fe80::%ue0/64      link#7             U           ue0
                        fe80::5cf9:38ff:fe link#7             UHS         lo0
                        
                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          Yeah just to check the iphone is capable of doing this. Maybe connect it to something else, a laptop.

                          1 Reply Last reply Reply Quote 0
                          • E
                            eiger3970
                            last edited by eiger3970

                            Yes, the iPhone is capable of providing tethered internet via USB.
                            The iPhone tethering worked on other machines previously, however I wanted to triple check before this response.

                            There's something in the pfSense configuration I don't know needs to be done?
                            According to post 6, point 8, the Default Gateway should be in IPv4, not IPv6 in my case.

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

                              Is it giving you an IP address now? You won't have a gateway on the iphone at all until it responds to dhcp.

                              1 Reply Last reply Reply Quote 1
                              • E
                                eiger3970
                                last edited by

                                OPT1 IP address 0.0.0.0.

                                On the iPhone, I do what I do to make the USB tether work on other machines.
                                iPhone > passcode > Settings > Hotspot > turn on > Enable USB: yes.

                                [2.4.4-RELEASE][root@pfSense.localdomain]/root: netstat -r
                                Routing tables
                                
                                Internet:
                                Destination        Gateway            Flags     Netif Expire
                                0.0.0.0/8          link#1             U        vtnet0
                                localhost          link#4             UH          lo0
                                192.168.1.0/24     link#2             U        vtnet1
                                pfSense            link#2             UHS         lo0
                                
                                Internet6:
                                Destination        Gateway            Flags     Netif Expire
                                localhost          link#4             UH          lo0
                                fe80::%vtnet0/64   link#1             U        vtnet0
                                fe80::4063:7cff:fe link#1             UHS         lo0
                                fe80::%vtnet1/64   link#2             U        vtnet1
                                fe80::a42d:d5ff:fe link#2             UHS         lo0
                                fe80::%lo0/64      link#4             U           lo0
                                fe80::1%lo0        link#4             UHS         lo0
                                fe80::%ue0/64      link#7             U           ue0
                                fe80::5cf9:38ff:fe link#7             UHS         lo0
                                
                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  Hit renew/release on Status > Interfaces after doing that on the phone maybe?

                                  I would probably run a packet capture on ue0 and hit renew and see it anything is happening.

                                  Also check the dhcp logs for dhclient entries, you see an error there.

                                  Steve

                                  1 Reply Last reply Reply Quote 1
                                  • E
                                    eiger3970
                                    last edited by stephenw10

                                    pfSense > Diagnostics > Packet Capture > Interface: WAN2 > Start > Status > Interfaces > WAN2 > DHCP: Release > DHCP: renew > Diagnostics > Packet Capture > Interface: WAN > Stop > View Capture.

                                    16:32:42.061530 IP 0.0.0.0.68 > 255.255.255.255.67: UDP, length 300
                                    16:32:47.074104 IP 0.0.0.0.68 > 255.255.255.255.67: UDP, length 300
                                    16:32:47.074108 IP 0.0.0.0.68 > 255.255.255.255.67: UDP, length 300
                                    16:32:52.105408 IP 0.0.0.0.68 > 255.255.255.255.67: UDP, length 300
                                    16:32:52.105412 IP 0.0.0.0.68 > 255.255.255.255.67: UDP, length 300
                                    16:32:57.155403 IP 0.0.0.0.68 > 255.255.255.255.67: UDP, length 300
                                    16:33:02.175405 IP 0.0.0.0.68 > 255.255.255.255.67: UDP, length 300
                                    16:33:11.088430 IP 0.0.0.0.68 > 255.255.255.255.67: UDP, length 300
                                    16:33:30.070614 IP 0.0.0.0.68 > 255.255.255.255.67: UDP, length 300
                                    16:33:43.170645 IP 0.0.0.0.68 > 255.255.255.255.67: UDP, length 300
                                    

                                    pfSense > Status > System Logs > DHCP > no errors, only data from 20200226.

                                    Feb 26 20:37:25	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1
                                    Feb 26 20:37:26	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1
                                    Feb 26 20:37:27	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1
                                    Feb 26 20:37:28	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1
                                    Feb 26 20:37:29	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1
                                    Feb 26 20:37:30	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 2
                                    Feb 26 20:37:32	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 2
                                    Feb 26 20:37:34	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 5
                                    Feb 26 20:37:39	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 10
                                    Feb 26 20:37:49	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 18
                                    Feb 26 20:38:01	dhclient		FAIL
                                    Feb 26 20:38:07	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 12
                                    Feb 26 20:38:19	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 7
                                    Feb 26 20:38:26	dhclient	80005	No DHCPOFFERS received.
                                    Feb 26 20:38:26	dhclient	80005	No working leases in persistent database - sleeping.
                                    Feb 26 20:38:26	dhclient		FAIL
                                    Feb 26 20:38:41	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1
                                    Feb 26 20:38:42	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1
                                    Feb 26 20:38:43	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 2
                                    Feb 26 20:38:45	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 2
                                    Feb 26 20:38:47	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 5
                                    Feb 26 20:38:52	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 7
                                    Feb 26 20:38:59	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 15
                                    Feb 26 20:39:14	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 19
                                    Feb 26 20:39:17	dhclient		FAIL
                                    Feb 26 20:39:33	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 9
                                    Feb 26 20:39:42	dhclient	80005	No DHCPOFFERS received.
                                    Feb 26 20:39:42	dhclient	80005	No working leases in persistent database - sleeping.
                                    Feb 26 20:39:42	dhclient		FAIL
                                    Feb 26 20:39:57	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1
                                    Feb 26 20:39:58	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 2
                                    Feb 26 20:40:00	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 5
                                    Feb 26 20:40:05	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 5
                                    Feb 26 20:40:10	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 13
                                    Feb 26 20:40:23	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 15
                                    Feb 26 20:40:34	dhclient		FAIL
                                    Feb 26 20:40:38	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 12
                                    Feb 26 20:40:50	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 7
                                    Feb 26 20:40:57	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1
                                    Feb 26 20:40:58	dhclient	80005	No DHCPOFFERS received.
                                    Feb 26 20:40:58	dhclient	80005	No working leases in persistent database - sleeping.
                                    Feb 26 20:40:58	dhclient		FAIL
                                    Feb 26 20:41:13	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1
                                    Feb 26 20:41:14	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1
                                    Feb 26 20:41:15	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 1
                                    Feb 26 20:41:16	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 2
                                    Feb 26 20:41:18	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 5
                                    Feb 26 20:41:23	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 6
                                    Feb 26 20:41:29	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 10
                                    Feb 26 20:41:39	dhclient	80005	DHCPDISCOVER on ue0 to 255.255.255.255 port 67 interval 17
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      Hmm, so it looks like the phone is just not responding. Did you test it with a different device?

                                      Maybe it needs some other setting.

                                      1 Reply Last reply Reply Quote 1
                                      • E
                                        eiger3970
                                        last edited by

                                        Yes, the USB tether works fine on other machines.

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

                                          Hmm, well maybe the fact we are having to force the config index is because it should be triggered to use USB Ethernet some other way and that also starts it's DHCP server.

                                          Are you able to connect it to a Linux device and check the logs it produces? Assuming it works there that is...

                                          1 Reply Last reply Reply Quote 1
                                          • E
                                            eiger3970
                                            last edited by

                                            The logs of the iPhone.
                                            I have and can connect to Linux machines, works quite easily.
                                            I would have to connect the phone to a Mac to see phone logs.

                                            I'm wondering if I should be tethering the phone to the hypervisor/host machine and then the guest machine will receive internet from the hypervisor. This might need a NAT?

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