[HOW TO] usb tether on pfsense 2.4 as router
-
You can add these lines to /boot/loader.conf.local to make the modules load automatically on boot:
if_urndis_load="YES" if_ipheth_load="YES"
There's still one more caveat. The phone must be in USB tethering mode when system is booted or no interface will be created and you again get an interface mismatch on boot.
-
yep, sadly my phone auto disables tethering during the reboot tho as when it detects a usb disconnection it auto flips it to off.
For me its not a big deal, but I just posted the warning for others. What I do now is just remove the opt device, I can keep the gateway preserved in the routing settings no problem tho. So on a new tether I only need to add the OPT3 again.
-
Reviving this older thread to ask two –almost certainly noob'ish --questions:
- is it possible to find the pre-compiled kernel modules anywhere (IE: anywhere trusted)?
- are kernel modules platform-specific? I assume so
2.5) assuming so - anyone know of a place to find them for the ARM chip used in the SG-1000? Or...
2.5.5) are there virtual platforms (like virtual box) where one could download the ARM compatible source for the kernel and compile the modules oneself?
Thanks!
edited to add - resolved for now :)
Got some good insight here https://www.reddit.com/r/PFSENSE/comments/7xtyo0/any_way_to_tether_an_iphone_to_a_sg1000_looking/While I got gung-ho to learn some new BSD skills, it seems like the best move is to wait for a bit to see if this module makes it way into a stable build for the ARM platform.
Thanks everyone for the work you are doing!
-
Hi, I just made an account to say thanks for this helpful thread, and to let others who might land here know that, as of pfSense 2.4.5, you no longer need to compile the kernel modules - the
if_urndis
andif_ipheth
modules are now included by default.Also, regarding the phone switching off USB tethering when the pfSense box reboots, recent versions of Android allow you to automatically turn on USB tethering when a USB device is connected. First you have to enable Developer Mode, then in Developer Options you can change the "Default USB configuration" to tethering / hotspot. This should activate tethering as soon as the USB connection is made, so the
ue0
device will hopefully be present by the time the the system boots and tries to use the interface. I'm not sure what Android version this was added in; so far I've only confirmed that it works on a Pixel 3a running Android 10.Cheers :)
-
very useful information. Thank you very much!!
-
@yusef
can you confirm if you still have to do the following to make this work :@kpa said in [HOW TO] usb tether on pfsense 2.4 as router:
You can add these lines to /boot/loader.conf.local to make the modules load automatically on boot:
if_urndis_load="YES"
if_ipheth_load="YES"There's still one more caveat. The phone must be in USB tethering mode when system is booted or no interface will be created and you again get an interface mismatch on boot.
-
@yusef I don't see the modules in 2.4.5_1. I have tried manually loading them and including the load configs in /boot/loader.conf.local, and they are not being loaded. Are you sure these are included now?
-
@ServerTeam I can verify that on 2.4.5-RELEASE-p1 (amd64)
built on Tue Jun 02 17:51:17 EDT 2020
FreeBSD 11.3-STABLE you do NOT need to use the lines in /boot/loader.conf.localif_urndis_load="YES" if_ipheth_load="YES"
I usb tethered without it from my android device.
-
@good4y0u I wonder if this is the difference between arm and amd64. I have a SG-3100 appliance and I can't get the ue0 interface to come up.
[2.4.5-RELEASE][root@system]/root: uname -a FreeBSD system 11.3-STABLE FreeBSD 11.3-STABLE #238 885b1ed26b6(factory-RELENG_2_4_5): Tue Jun 2 17:52:40 EDT 2020 root@buildbot1-nyi.netgate.com:/build/factory-crossbuild-245-armv6/obj/armv6/kJlGauaG/arm.armv6/build/factory-crossbuild-245-armv6/sources/FreeBSD-src/sys/pfSense-SG-3100 arm
[2.4.5-RELEASE][root@system]/root: cat /etc/version 2.4.5-RELEASE
It really appears these modules are not included in this build.
-
@serverteam Same here - I own an SG-1100 and looks like ~24 days ago a core developer added armv7 and aarm64 to the build servers. Hopefully, next release will contain these modules in the kernel.
https://redmine.pfsense.org/issues/7467#note-18
-
This post is deleted! -
-