iPhone tethering
-
Yup you will see it attach as an Ethernet interface in the logs. Then it will show as
ue0
.From that USB output, yes you'd need to set config index 3. You might be able to set that in the iphone though. I don't recall other users having to set that.
-
@stephenw10 Thanks
I think that the moment this command is executed and the connection is being made the iPhone will ask it's owner if the computer that wants to make the connection can be trusted.
From what I read on other phones the assignment can be made solemnly from the GUI, why not with an Apple device, I think not everyone can use the command line interface?
-
@stephenw10 I used
usbconfig -d 0.2 set_config 3
this added ue0 and I saved this port to a new interface., but alas the assignment is not persistent, when I remove the iPhone from the USB connection and then reattach it again. ue0 is gone and the assignment has changed remarkably to another (hardware) port. So I have to start over again.
-
Yup you need to add a usb quirk against the vid/pid: https://man.freebsd.org/cgi/man.cgi?query=usb_quirk#LOADER_TUNABLE
-
I did a (see below) to get the vid/pid
[2.8.1-RELEASE][root@pfSense.localdomain]/root: usbconfig -d 0.2 dump_device_desc ugen0.2: <iPhone 5/5C/5S/6/SE/7/8/X/XR Apple, Inc.> at usbus0, 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 = 0x1502 iManufacturer = 0x0001 <Apple Inc.> iProduct = 0x0002 <iPhone> iSerialNumber = 0x0003 <000081200011685234EB401E> bNumConfigurations = 0x0004 [2.8.1-RELEASE][root@pfSense.localdomain]/root:
I can't seem to find the LowRevision HighRevision? So should I make them 0x0000 0xffff?
If so, then below I think is what I should enter in loader.conf or in should it be in
/boot/loader.conf.local?usb_quirk_load="YES" hw.usb.quirk.0="0x05ac 0x12a8 0x0000 0xffff UQ_CFG_INDEX_3"
-
Yup exactly that. And, yes, just set all revisions like that.
-
Just one final question, should I place these 2 lines in loader.conf or create a loader.conf.local and place it there?
sb_quirk_load="YES" hw.usb.quirk.0="0x05ac 0x12a8 0x0000 0xffff UQ_CFG_INDEX_3"
-
@Qinn said in iPhone tethering:
loader.conf
afaik :
Can get rewritten (modified) by pfSense.
loader.conf.local isn't touched by pfSense.edit : and both are used/read by the kernel.
-
@Gertjan A bit confused, so I should create a loader.conf.local and save these 2 lines there?
-
Yes, create loader.conf.local and use that.
-
@stephenw10 Thanks for Chiming in and clarifying it
-
Extra info : Managing Loader Tunables.
-
@Gertjan Thanks for pointing that one out.
-
@Qinn FWIW, if you want the loader.conf.local file backed up in the config, you can create a custom patch in System / Patches. Since you are patching against an empty file, be sure that you do not enable Auto Apply.