05-02-2020, 03:47 PM
(04-30-2020, 11:39 PM)rico Wrote:(04-28-2020, 12:01 PM)rico Wrote:(04-28-2020, 10:25 AM)dukla2000 Wrote:(04-28-2020, 08:29 AM)a-wai Wrote:(04-28-2020, 08:02 AM)dukla2000 Wrote: b) Even adding an dhcp-range 10.0.0.50,10.0.0.150 I cant get internet sharing to work via the USB port!Did you disable the "hardcoded" config first ? (assuming you have pinephone-devtools installed, it is stored in /etc/NetworkManager/system-connections/USB-gadget.nmconnection)
Not yet - hope @rico can bail my pathetic networking skills out on this one! I see usb0 is in USB-gadget mode - need to work out how to get it into Hotspot mode as per wlan0.
You mean access the internet from the PC via usb ?
using the phone as a usb modem ?
Do you have a Linux like OS on the client side (PC) ? (not just to ask but to answer it will be helpfull)
Currently you have an 'out of the box' point to point connection between the client (PC) and the server (PinePhone) if pinephone-devtools are installed as mentionned by a-wai on previous page
But as the ssh-server even if it can be usefull, we have to "point the interest of all" before making this feature a default feature.
Anyway i'll try tomorrow just to find an answer (not now, i forgot my PinePhone at work, bad day...)
ip forwarding and NAT are not pre-configured (even with 'pinephone-devtools' installed)
On the last build (clean)
Code:apt-get install pinephone-devtools dnsmasq-base
Code:nmcli connection modify USB-gadget ipv4.method shared
Reboot and voila.
What change :
The client is in DHCP.
//edit: remove firewalld
I've also got a dhcp-range in /etc/dnsmasq.conf, and /proc/sys/net/ipv4/ip_forward = 1 via /etc/sysctl.conf which are artefacts from my fiddling about, but from your instructions I presume are not necessary? Will double check next time I do a clean install.
- PinePhone BraveHeart now v1.2b 3/32Gb daily driver, Tow-boot with pmOS/SXMO on eMMC
- PinePhone Pro Explorer Edition, Tow-boot on SPI, Arch/SXMO on eMMC
- ROCKPro64 v2.1 2GB, 16Gb eMMC retired in favour of a fruity upgrade