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

    IPhone Tethering to pfSense

    Scheduled Pinned Locked Moved Hardware
    64 Posts 7 Posters 16.6k 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

      So, pfSense moderators, does pfSense Version 2.4.4-RELEASE-p2 (amd64) built on Wed Dec 12 07:40:18 EST 2018 FreeBSD 11.2-RELEASE-p6 have software installed for iPhone tethering?

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

        No. Neither does 2.4.4p3 which is the current version.

        It's not hard to get working though. Copy the kernel module if_ipheth.ko from a FreeBSD ISO, 11.2 to match pfSense 2.4.4, put it in /boot/modules
        Now add the line if_ipheth_load="YES" to the file /boot/loader.conf.local (create that file if necessary).
        That will load the driver at boot, alternatively you can load it immediately to test at the command line with kldload if_ipheth.
        According to this post you may need to chose a different usb config index for some models.

        I don't have a current iphone to test that with. Let us know how you get on.

        Steve

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

          For reference this issue is covered by this: https://redmine.pfsense.org/issues/7467

          1 Reply Last reply Reply Quote 0
          • RicoR
            Rico LAYER 8 Rebel Alliance
            last edited by

            Here you go: if_ipheth.zip

            -Rico

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

              Great 😄 Thanks stephenw10 and Rico.
              That zip file really saved me headaches downloading some iso file.

              Had some trouble copying the if_ipheth.ko file from local computer to pfSense...I had to use root rather than admin.
              Will test physical connection tomorrow, now that the software should be ready.

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

                Just be aware that when pfSense 2.4.5 is released that kernel module will probably fail and require a module from 11-stable instead.
                If we can get those drivers included as modules that would not happen. I'm not entirely sure what the reasoning was for not including them, I do know it's been discussed before though. I have pinged our devs to see if we can do anything.

                Steve

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

                  Thanks for the heads up.
                  Should be where the future is moving, so would be avante garde to include now.
                  Unless there's a conflict of interest with a networking business in control of the open source pfSense OS?

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

                    Not sure if a Proxmox or pfSense issue.
                    I allocated Proxmox's USB port to the pfSense VM ID.

                    pfSense dmesg and usbconfig don't show ue0?

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

                      Do you see a new device detected at all when it's connected?

                      I would probably try to get this working on real hardware first but I guess you could tackle it either way.

                      Steve

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

                        I have the USB connected to my local Linux Mint computer.
                        Moving hardware to the hypervisor is where the issue arises.
                        Hypervisor shell > $ lsusb > Enter > outputs the USB device.

                        root@proxmox:~# lsusb
                        Bus 002 Device 002: ID 8087:8000 Intel Corp. 
                        Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
                        Bus 001 Device 002: ID 8087:8008 Intel Corp. 
                        Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
                        Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
                        Bus 003 Device 002: ID 05ac:12a8 Apple, Inc. 
                        Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
                        

                        I allocated the USB ID 05ac:12a8 to the pfSense VM ID 145.
                        From there, I don't see much confirmation of pfSense connected to the USB?

                        [2.4.4-RELEASE][admin@pfSense.localdomain]/root: ifconfig
                        vtnet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
                        	options=c00b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE>
                        	ether 42:63:7c:e4:6c:e3
                        	hwaddr 42:63:7c:e4:6c:e3
                        	inet6 fe80::4063:7cff:fee4:6ce3%vtnet0 prefixlen 64 scopeid 0x1 
                        	inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 
                        	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
                        	media: Ethernet 10Gbase-T <full-duplex>
                        	status: active
                        vtnet1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
                        	options=c00b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE>
                        	ether a6:2d:d5:4f:6c:f3
                        	hwaddr a6:2d:d5:4f:6c:f3
                        	inet6 fe80::a42d:d5ff:fe4f:6cf3%vtnet1 prefixlen 64 scopeid 0x2 
                        	inet 192.168.1.170 netmask 0xffffff00 broadcast 192.168.1.255 
                        	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
                        	media: Ethernet 10Gbase-T <full-duplex>
                        	status: active
                        enc0: flags=0<> metric 0 mtu 1536
                        	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
                        	groups: enc 
                        lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
                        	options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
                        	inet6 ::1 prefixlen 128 
                        	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
                        	inet 127.0.0.1 netmask 0xff000000 
                        	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
                        	groups: lo 
                        pflog0: flags=100<PROMISC> metric 0 mtu 33160
                        	groups: pflog 
                        pfsync0: flags=0<> metric 0 mtu 1500
                        	groups: pfsync 
                        	syncpeer: 224.0.0.240 maxupd: 128 defer: on
                        	syncok: 1
                        
                        [2.4.4-RELEASE][admin@pfSense.localdomain]/root: usbconfig
                        ugen0.1: <Intel UHCI root HUB> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
                        ugen0.2: <QEMU QEMU USB Tablet> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
                        
                        

                        According to https://forum.netgate.com/topic/95174/huawei-k5160-4g-usb-mobile-broadband/6 > post 6 > point 5 > I should see ue0, however I don't see this yet?

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

                          I believe this is not a pfSense issue.
                          I'm working on the hypervisor to pass the USB through.

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

                            Yeah you should see it in usbconfig and dmesg after connecting it. You won't see it as an interface in ifconfig until a driver attaches to it.

                            Steve

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

                              Ok, finally have the hypervisor working and passing the USB to the pfSense VM.
                              Not sure on the config for the pfSense VM to use a USB modem, so will try this link.

                              [2.4.4-RELEASE][admin@pfSense.localdomain]/boot: usbconfig
                              ugen1.1: <Intel UHCI root HUB> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
                              ugen0.1: <Intel UHCI root HUB> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
                              ugen3.1: <Intel UHCI root HUB> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
                              ugen2.1: <Intel UHCI root HUB> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
                              ugen4.1: <Intel EHCI root HUB> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
                              ugen0.2: <QEMU QEMU USB Tablet> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
                              ugen4.2: <Apple Inc. iPhone> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
                              [2.4.4-RELEASE][admin@pfSense.localdomain]/boot: ifconfig
                              vtnet0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
                              	options=c00b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE>
                              	ether 42:63:7c:e4:6c:e3
                              	hwaddr 42:63:7c:e4:6c:e3
                              	inet6 fe80::4063:7cff:fee4:6ce3%vtnet0 prefixlen 64 scopeid 0x1 
                              	inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 
                              	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
                              	media: Ethernet 10Gbase-T <full-duplex>
                              	status: active
                              vtnet1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
                              	options=c00b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE>
                              	ether a6:2d:d5:4f:6c:f3
                              	hwaddr a6:2d:d5:4f:6c:f3
                              	inet6 fe80::a42d:d5ff:fe4f:6cf3%vtnet1 prefixlen 64 scopeid 0x2 
                              	inet 192.168.1.170 netmask 0xffffff00 broadcast 192.168.1.255 
                              	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
                              	media: Ethernet 10Gbase-T <full-duplex>
                              	status: active
                              enc0: flags=0<> metric 0 mtu 1536
                              	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
                              	groups: enc 
                              lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
                              	options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
                              	inet6 ::1 prefixlen 128 
                              	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
                              	inet 127.0.0.1 netmask 0xff000000 
                              	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
                              	groups: lo 
                              pflog0: flags=100<PROMISC> metric 0 mtu 33160
                              	groups: pflog 
                              pfsync0: flags=0<> metric 0 mtu 1500
                              	groups: pfsync 
                              	syncpeer: 224.0.0.240 maxupd: 128 defer: on
                              	syncok: 1
                              

                              Post 6, point 5, pfSense shows:
                              pfSense > Interfaces > Assign.
                              My pfSense 2.4.4 > Interfaces > Assignments > has no option to add OPT2. What do I need to do to add the USB?

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

                                If the phone is detected and you see a ue0 interface you should just be able to assign it and set it as dhcp.

                                Also: https://github.com/pfsense/pfsense/commit/41e09c2264bcc8067c349213eab5c0dadfb5681f ☺

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

                                  pfSense 2.4.4 has the kernel module if_ipheth.ko:

                                  [2.4.4-RELEASE][admin@pfSense.localdomain]/boot/modules: ls
                                  bwi_v3_ucode.ko if_ipheth.ko    linker.hints
                                  

                                  pfSense 2.4.4 /boot has the loader.conf file:

                                  [2.4.4-RELEASE][admin@pfSense.localdomain]/boot: ls
                                  beastie.4th        brand.4th          frames.4th         loader.efi         menu-commands.4th  userboot.so
                                  boot               cdboot             gptboot            loader.help        menu.4th           version.4th
                                  boot0              check-password.4th gptzfsboot         loader.rc          menu.rc            zfs
                                  boot0sio           color.4th          isoboot            logo-beastie.4th   menusets.4th       zfsboot
                                  boot1              defaults           kernel             logo-beastiebw.4th modules            zfsloader
                                  boot1.efi          delay.4th          kernel.old         logo-fbsdbw.4th    pmbr
                                  boot1.efifat       device.hints       loader             logo-orb.4th       pxeboot
                                  boot2              dtb                loader.4th         logo-orbbw.4th     screen.4th
                                  brand-fbsd.4th     entropy            loader.conf        logo-pfSensebw.4th shortcuts.4th
                                  brand-pfSense.4th  firmware           loader.conf.origin mbr                support.4th
                                  
                                  

                                  pfSense 2.4.4 has the loader.conf file edited:

                                  kern.cam.boot_delay=10000
                                  kern.ipc.nmbclusters="1000000"
                                  kern.ipc.nmbjumbop="524288"
                                  kern.ipc.nmbjumbo9="524288"
                                  if_ipheth_load="YES"
                                  autoboot_delay="3"
                                  hw.usb.no_pf="1"
                                  
                                  

                                  Not sure why I can't edit the pfSense GUI to add the USB modem now?
                                  usbconfig shows ugen4.2, rather than ue0, but not sure why and if it's an issue?

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

                                    Not sure what to do with the GitHub code?
                                    Think I'll file a bug report.

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

                                      I thought this Cellular Wireless guide might help.

                                      However, unable to type in the pfSense 2.4.4-RELEASE-p2 > Interfaces > PPPs > PPP Configuration > Link Interface(s): /dev/ugen4.2

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

                                        I'm pretty sure ipheth does not provide any interfaces you could use with PPP. It will appear as a USB Ethernet device when it's working.

                                        You should put that loader line in loader.conf.local to avoid it being overwritten. Create that file since you don't have it yet.

                                        Try running kldstat to see that the module is loaded.

                                        Connect the phone then check the system log or dmesg to see what pfSense did.

                                        What phone are you connecting? ipgeth appears to have specific support for iphones 1-5:
                                        https://github.com/pfsense/FreeBSD-src/blob/RELENG_2_5/sys/dev/usb/net/if_ipheth.c#L136

                                        Though it also tries to match any Apple device with the correct interface class.

                                        Steve

                                        1 Reply Last reply Reply Quote 1
                                        • A
                                          akuma1x
                                          last edited by

                                          I know we're trying to get an iPhone tethered to pfsense and get it working, but why don't you try this?

                                          GL.iNet GL-AR750 Travel AC Router
                                          https://www.amazon.com/GL-iNet-GL-AR750-300Mbps-pre-Installed-Included/dp/B07712LKJM

                                          There are a few lower-spec'd models, since you don't need the wifi on this travel router box.

                                          That would provide an ethernet interface, and still use the iPhone to grab the internet connection from your cellular provider. It works pretty well, if you've got a good signal.

                                          Jeff

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

                                            Thanks @stephenw10,
                                            The kernel module is running:

                                            [2.4.4-RELEASE][admin@pfSense.localdomain]/.ssh: kldstat
                                            Id Refs Address            Size     Name
                                             1    8 0xffffffff80200000 2d9a7d0  kernel
                                             2    1 0xffffffff82f9c000 4318     if_ipheth.ko
                                             3    1 0xffffffff83019000 10a0     cpuctl.ko
                                            

                                            dmesg shows pfSense has found the iPhone (18th line from the bottom):

                                            [2.4.4-RELEASE][admin@pfSense.localdomain]/.ssh: dmesg:
                                            Copyright (c) 1992-2018 The FreeBSD Project.
                                            Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
                                            	The Regents of the University of California. All rights reserved.
                                            FreeBSD is a registered trademark of The FreeBSD Foundation.
                                            FreeBSD 11.2-RELEASE-p6 #3 518496b29ae(RELENG_2_4_4): Wed Dec 12 07:41:44 EST 2018
                                                root@buildbot2.nyi.netgate.com:/build/ce-crossbuild-244/obj/amd64/ZfGpH5cd/build/ce-crossbuild-244/pfSense/tmp/FreeBSD-src/sys/pfSense amd64
                                            FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0)
                                            VT(vga): text 80x25
                                            CPU: Common KVM processor (3092.92-MHz K8-class CPU)
                                              Origin="GenuineIntel"  Id=0xf61  Family=0xf  Model=0x6  Stepping=1
                                              Features=0x783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2>
                                              Features2=0x80202001<SSE3,CX16,x2APIC,HV>
                                              AMD Features=0x20100800<SYSCALL,NX,LM>
                                              AMD Features2=0x1<LAHF>
                                            Hypervisor: Origin = "KVMKVMKVM"
                                            real memory  = 1073741824 (1024 MB)
                                            avail memory = 981479424 (936 MB)
                                            Event timer "LAPIC" quality 100
                                            ACPI APIC Table: <BOCHS  BXPCAPIC>
                                            ioapic0 <Version 1.1> irqs 0-23 on motherboard
                                            Timecounter "TSC-low" frequency 1546458305 Hz quality 800
                                            ipw_bss: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw.LICENSE.
                                            ipw_bss: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
                                            module_register_init: MOD_LOAD (ipw_bss_fw, 0xffffffff80680430, 0) error 1
                                            random: entropy device external interface
                                            ipw_ibss: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw.LICENSE.
                                            ipw_ibss: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
                                            module_register_init: MOD_LOAD (ipw_ibss_fw, 0xffffffff806804e0, 0) error 1
                                            ipw_monitor: You need to read the LICENSE file in /usr/share/doc/legal/intel_ipw.LICENSE.
                                            ipw_monitor: If you agree with the license, set legal.intel_ipw.license_ack=1 in /boot/loader.conf.
                                            module_register_init: MOD_LOAD (ipw_monitor_fw, 0xffffffff80680590, 0) error 1
                                            iwi_bss: You need to read the LICENSE file in /usr/share/doc/legal/intel_iwi.LICENSE.
                                            iwi_bss: If you agree with the license, set legal.intel_iwi.license_ack=1 in /boot/loader.conf.
                                            module_register_init: MOD_LOAD (iwi_bss_fw, 0xffffffff806a7460, 0) error 1
                                            iwi_ibss: You need to read the LICENSE file in /usr/share/doc/legal/intel_iwi.LICENSE.
                                            iwi_ibss: If you agree with the license, set legal.intel_iwi.license_ack=1 in /boot/loader.conf.
                                            module_register_init: MOD_LOAD (iwi_ibss_fw, 0xffffffff806a7510, 0) error 1
                                            iwi_monitor: You need to read the LICENSE file in /usr/share/doc/legal/intel_iwi.LICENSE.
                                            iwi_monitor: If you agree with the license, set legal.intel_iwi.license_ack=1 in /boot/loader.conf.
                                            module_register_init: MOD_LOAD (iwi_monitor_fw, 0xffffffff806a75c0, 0) error 1
                                            wlan: mac acl policy registered
                                            kbd1 at kbdmux0
                                            netmap: loaded module
                                            module_register_init: MOD_LOAD (vesa, 0xffffffff81209800, 0) error 19
                                            nexus0
                                            vtvga0: <VT VGA driver> on motherboard
                                            cryptosoft0: <software crypto> on motherboard
                                            padlock0: No ACE support.
                                            acpi0: <BOCHS BXPCRSDT> on motherboard
                                            acpi0: Power Button (fixed)
                                            cpu0: <ACPI CPU> on acpi0
                                            atrtc0: <AT realtime clock> port 0x70-0x71,0x72-0x77 irq 8 on acpi0
                                            atrtc0: registered as a time-of-day clock, resolution 1.000000s
                                            Event timer "RTC" frequency 32768 Hz quality 0
                                            hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
                                            Timecounter "HPET" frequency 100000000 Hz quality 950
                                            Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
                                            acpi_timer0: <24-bit timer at 3.579545MHz> port 0x608-0x60b on acpi0
                                            pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
                                            pci0: <ACPI PCI bus> on pcib0
                                            isab0: <PCI-ISA bridge> at device 1.0 on pci0
                                            isa0: <ISA bus> on isab0
                                            atapci0: <Intel PIIX3 WDMA2 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe120-0xe12f at device 1.1 on pci0
                                            ata0: <ATA channel> at channel 0 on atapci0
                                            ata1: <ATA channel> at channel 1 on atapci0
                                            uhci0: <Intel 82371SB (PIIX3) USB controller> port 0xe040-0xe05f irq 11 at device 1.2 on pci0
                                            usbus0 on uhci0
                                            pci0: <bridge> at device 1.3 (no driver attached)
                                            vgapci0: <VGA-compatible display> mem 0xfa000000-0xfbffffff,0xfea90000-0xfea90fff at device 2.0 on pci0
                                            vgapci0: Boot video device
                                            virtio_pci0: <VirtIO PCI Balloon adapter> port 0xe060-0xe07f mem 0xfc000000-0xfc7fffff irq 11 at device 3.0 on pci0
                                            vtballoon0: <VirtIO Balloon Adapter> on virtio_pci0
                                            virtio_pci1: <VirtIO PCI Block adapter> port 0xe000-0xe03f mem 0xfea91000-0xfea91fff,0xfc800000-0xfcffffff irq 10 at device 10.0 on pci0
                                            vtblk0: <VirtIO Block Adapter> on virtio_pci1
                                            vtblk0: 8192MB (16777216 512 byte sectors)
                                            virtio_pci2: <VirtIO PCI Network adapter> port 0xe080-0xe09f mem 0xfea92000-0xfea92fff,0xfd000000-0xfd7fffff irq 10 at device 18.0 on pci0
                                            vtnet0: <VirtIO Networking Adapter> on virtio_pci2
                                            vtnet0: Ethernet address: 42:63:7c:e4:6c:e3
                                            000.000971 [ 421] vtnet_netmap_attach       max rings 1
                                            vtnet0: netmap queues/slots: TX 1/1024, RX 1/1024
                                            000.000972 [ 426] vtnet_netmap_attach       virtio attached txq=1, txd=1024 rxq=1, rxd=1024
                                            virtio_pci3: <VirtIO PCI Network adapter> port 0xe0a0-0xe0bf mem 0xfea93000-0xfea93fff,0xfd800000-0xfdffffff irq 11 at device 19.0 on pci0
                                            vtnet1: <VirtIO Networking Adapter> on virtio_pci3
                                            vtnet1: Ethernet address: a6:2d:d5:4f:6c:f3
                                            000.000973 [ 421] vtnet_netmap_attach       max rings 1
                                            vtnet1: netmap queues/slots: TX 1/1024, RX 1/1024
                                            000.000974 [ 426] vtnet_netmap_attach       virtio attached txq=1, txd=1024 rxq=1, rxd=1024
                                            uhci1: <Intel 82801I (ICH9) USB controller> port 0xe0c0-0xe0df irq 10 at device 29.0 on pci0
                                            usbus1 on uhci1
                                            uhci2: <Intel 82801I (ICH9) USB controller> port 0xe0e0-0xe0ff irq 10 at device 29.1 on pci0
                                            usbus2 on uhci2
                                            uhci3: <Intel 82801I (ICH9) USB controller> port 0xe100-0xe11f irq 11 at device 29.2 on pci0
                                            usbus3 on uhci3
                                            ehci0: <Intel 82801I (ICH9) USB 2.0 controller> mem 0xfea94000-0xfea94fff irq 11 at device 29.7 on pci0
                                            usbus4: EHCI version 1.0
                                            usbus4 on ehci0
                                            pcib1: <ACPI PCI-PCI bridge> mem 0xfea95000-0xfea950ff irq 10 at device 30.0 on pci0
                                            pci1: <ACPI PCI bus> on pcib1
                                            pcib2: <ACPI PCI-PCI bridge> mem 0xfea96000-0xfea960ff irq 11 at device 31.0 on pci0
                                            pci2: <ACPI PCI bus> on pcib2
                                            acpi_syscontainer0: <System Container> on acpi0
                                            acpi_syscontainer1: <System Container> port 0xaf00-0xaf0b on acpi0
                                            acpi_syscontainer2: <System Container> port 0xafe0-0xafe3 on acpi0
                                            acpi_syscontainer3: <System Container> port 0xae00-0xae13 on acpi0
                                            atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
                                            atkbd0: <AT Keyboard> irq 1 on atkbdc0
                                            kbd0 at atkbd0
                                            atkbd0: [GIANT-LOCKED]
                                            psm0: <PS/2 Mouse> irq 12 on atkbdc0
                                            psm0: [GIANT-LOCKED]
                                            psm0: model IntelliMouse Explorer, device ID 4
                                            fdc0: <floppy drive controller (FDE)> port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0
                                            fdc0: does not respond
                                            device_attach: fdc0 attach returned 6
                                            orm0: <ISA Option ROM> at iomem 0xed000-0xeffff on isa0
                                            vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
                                            attimer0: <AT timer> at port 0x40 on isa0
                                            Timecounter "i8254" frequency 1193182 Hz quality 0
                                            Event timer "i8254" frequency 1193182 Hz quality 100
                                            fdc0: No FDOUT register!
                                            ppc0: cannot reserve I/O port range
                                            Timecounters tick every 10.000 msec
                                            usbus0: 12Mbps Full Speed USB v1.0
                                            usbus1: 12Mbps Full Speed USB v1.0
                                            usbus2: 12Mbps Full Speed USB v1.0
                                            usbus3: 12Mbps Full Speed USB v1.0
                                            usbus4: 480Mbps High Speed USB v2.0
                                            ugen1.1: <Intel UHCI root HUB> at usbus1
                                            uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
                                            ugen0.1: <Intel UHCI root HUB> at usbus0
                                            uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
                                            ugen3.1: <Intel UHCI root HUB> at usbus3
                                            uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
                                            ugen2.1: <Intel UHCI root HUB> at usbus2
                                            uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
                                            ugen4.1: <Intel EHCI root HUB> at usbus4
                                            uhub4: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
                                            uhub0: 2 ports with 2 removable, self powered
                                            uhub1: 2 ports with 2 removable, self powered
                                            uhub2: 2 ports with 2 removable, self powered
                                            uhub3: 2 ports with 2 removable, self powered
                                            ugen0.2: <QEMU QEMU USB Tablet> at usbus0
                                            uhid0 on uhub1
                                            uhid0: <QEMU QEMU USB Tablet, class 0/0, rev 2.00/0.00, addr 2> on usbus0
                                            uhub4: 6 ports with 6 removable, self powered
                                            ugen4.2: <Apple Inc. iPhone> at usbus4
                                            cd0 at ata1 bus 0 scbus1 target 0 lun 0
                                            cd0: <QEMU QEMU DVD-ROM 2.5+> Removable CD-ROM SCSI device
                                            cd0: Serial Number QM00003
                                            cd0: 16.700MB/s transfers (WDMA2, ATAPI 12bytes, PIO 65534bytes)
                                            cd0: 655MB (335744 2048 byte sectors)
                                            Trying to mount root from ufs:/dev/ufsid/5c46b3cebae05a43 [rw]...
                                            random: unblocking device.
                                            CPU: Common KVM processor (3092.92-MHz K8-class CPU)
                                              Origin="GenuineIntel"  Id=0xf61  Family=0xf  Model=0x6  Stepping=1
                                              Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
                                              Features2=0x80202001<SSE3,CX16,x2APIC,HV>
                                              AMD Features=0x20100800<SYSCALL,NX,LM>
                                              AMD Features2=0x1<LAHF>
                                            Hypervisor: Origin = "KVMKVMKVM"
                                            vtnet0: link state changed to UP
                                            vtnet1: link state changed to UP
                                            pflog0: promiscuous mode enabled
                                            

                                            I'm using an old iPhone 5C, works fine on other OSes with USB hotspot.
                                            I suspect it's the VM or FreeBSD factor.
                                            I think I solved the VM factor by passing the USB through the hypervisor correctly.

                                            @akuma1x Thanks, however:

                                            1. that would be a failure.
                                            2. bit like 'just reboot the computer'. I prefer to find and solve the issue at hand, for future reference.
                                            3. I'm trying to make the network as efficient as possible.
                                            4. The fewer hardware devices:
                                              4.1 the less points of failure
                                              4.2 the less power costs
                                              4.3 possibly less network bottlenecks
                                              4.3.1 possibly less speed delays
                                            5. reduces fiscal expense
                                            6. cleaner network topology map
                                            7. less unnecessary products
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.