Translate

Arm Ukraine, zap Putin

Stolen Votes

berklix.com logo

berklix.org logo

No Cookies

Flag UK DE

BSD-PIE

BSD

GNU

Linux

No Tracking

Disclaimer

IBU

Consol

tethering_bsd_to_android IN EDIT
  • FreeBSD PC routing to Internet via USB cable to Android, thence WLAN to Router.,
  • Notes:
  • PC_______: Connecting usb creates these in /dev/ :
    • lrwxr-xr-x 1 root wheel 9 Nov 9 21:24 ./ugen1.6 -> usb/1.6.0
    • crw------- 1 root operator 0x9a Nov 9 21:24 ./usb/1.6.0
    • crw------- 1 root operator 0x9c Nov 9 21:24 ./usb/1.6.1
    • crw------- 1 root operator 0x9d Nov 9 21:24 ./usb/1.6.3
  • PC_______: For urndis USB Remote NDIS Ethernet device driver, Use FreeBSD-9.3-RELEASE or newer, not 9.2 & not 10.0, .
  • PC_______: /boot/loader.conf Add if_urndis_load="YES" Or
    PC_______: /sys/amd64/conf/ Add "device urndis"
  • Android_: Touch "Settings ; Connections ; Tethering and portable hot spot ; USB tethering";
    After a few seconds it shows "Tethered" + a green tick.
  • The tethering causes these in /dev/ :
    • Disappears: usb/1.6.3
    • Adds: crw------- 1 root operator 0xa1 Nov 9 21:24 ./usb/1.6.2
  • PC_______: ifconfig -a Or ifconfig ue0
  • I should be able to call ifconfig from attach in devd.conf, but I fail with "Executing 'logger Unknown USB device: vendor 0x04e8 product 0x6863 bus uhub4' "
  • PC_______: Shows: ue0: flags=8802<BROADCAST, SIMPLEX, MULTICAST> metric 0 mtu 1500
  • PC_______: cp /etc/resolv.conf /tmp/resolv.conf.cp
  • PC_______: [If PC is configured with /etc/rc.conf ifconfig_wlan0="DHCP" enabling DHCP for WLAN] The next dhclient will over-write /etc/resolv.conf with
    PC_______: "nameserver 192.168.42.129",
    PC_______: which kills routing to other devices on PC's ethernet.
  • PC_______: dhclient -d ue0
  • PC_______: cat /tmp/resolv.conf.cp /etc/resolv.conf | grep '^nameserver' | sort | uniq > /tmp/resolv.conf.tmp;
  • PC_______: mv /tmp/resolv.conf.tmp /etc/resolv.conf
  • PC_______: vi /tmp/resolv.conf.cp /etc/resolv.conf
  • PC_______: ifconfig ue0
  • inet 192.168.42.139 netmask 0xffffff00 broadcast 192.168.42.255
  • PC_______: Shows local address assigned by Android to PC (a class C private).
  • PC_______: arp -a -i ue0
    • (192.168.42.139) at 0f:0f:0f:0f:0f:0f on ue0 permanent [ethernet]
  • Android__: Browser 192.168.42.139/cgi-bin/printenv shows REMOTE_ADDR="192.168.42.129"
  • PC_______: Instead of dhclient and repairing /etc/resolv.conf, as [just my?] Android allocates the same numbers each time, one can just:
  • PC_______: ifconfig ue0 192.168.42.139
  • Android__: After enabling tethering on android, the android browser can see PC apache httpd (where I can stage downloaded android apps from internet).
  • PC_______: ping 192.168.42.129
  • Android__: Stops android screen becoming non responsive.
  • Android__: Touch Internet icon. A browser starts
  • Android: Each touch on a browser link URL (even a numeric local one), Android shows:
    "No network connection. Mobile data turned off. Connected to Wi-Fi network instead or turn on mobile data and try again."
    Just click OK each time, then it shows the new page.
  • Android: Touch URL bar at top.
  • Android: Type in 192.168.42.139

Stolen VotesBerklix.Net Computer AssociatesDomainsApache: Web ServerFreeBSD: Operating System