Pinephone Wifi hotspot no internet connectivity

Hi, I installed the most recent Phosh ARM distro from here and it’s working fine, except for the Wifi hotspot function. I can set it up and connect, but there’s no internet connectivity on my laptop or tablet when I connect to the hotspot. I have internet connection over 4G on my phone, but apparently it isn’t shared over the hotspot somehow. My ip route on the connected device shows no default gateway. Any idea on what’s going on and how to fix this?

1 Like

I don’t think hotspot function is complete and bridges 2 different network interface.

I might be wrong but on mobile UI it is still WIP.

I was experimenting with this a bit lately. I’m running the unstable build (kernel 5.18.9-1) and for me, creating the hotspot through GNOME Settings doesn’t work at all. It tries to create it but never actually does. I’m not exactly sure why, but that’s not my point here.
I managed to get it to create a hotspot with nmcli d wifi hotspot ifname wlan0 band bg password aaaaaaaa ssid a con-name a. Just like OP, the network appears and I’m able to connect. I just can’t get to the internet. A ping reveals an interesting thing. The address gets resolved but no packets ever actually go through. This lead me to believe something might be wrong with iptables.
I checked the system journal and voila:

Jul 04 00:29:13 pinephone NetworkManager[3310]: <error> [1656887353.2820] modprobe: '/sbin/modprobe --use-blacklist nf_nat_irc' exited with error 256 (modprobe: FATAL: Module nf_nat_irc not found in directory /lib/modules/5.18.9-1-MANJAR>
Jul 04 00:29:13 pinephone NetworkManager[3310]: <error> [1656887353.3035] modprobe: '/sbin/modprobe --use-blacklist nf_nat_sip' exited with error 256 (modprobe: FATAL: Module nf_nat_sip not found in directory /lib/modules/5.18.9-1-MANJAR>
Jul 04 00:29:13 pinephone NetworkManager[3310]: <error> [1656887353.3240] modprobe: '/sbin/modprobe --use-blacklist nf_nat_tftp' exited with error 256 (modprobe: FATAL: Module nf_nat_tftp not found in directory /lib/modules/5.18.9-1-MANJ>
Jul 04 00:29:13 pinephone NetworkManager[3310]: <error> [1656887353.3459] modprobe: '/sbin/modprobe --use-blacklist nf_nat_pptp' exited with error 256 (modprobe: FATAL: Module nf_nat_pptp not found in directory /lib/modules/5.18.9-1-MANJ>
Jul 04 00:29:13 pinephone NetworkManager[3310]: <error> [1656887353.3684] modprobe: '/sbin/modprobe --use-blacklist nf_nat_h323' exited with error 256 (modprobe: FATAL: Module nf_nat_h323 not found in directory /lib/modules/5.18.9-1-MANJ>
Jul 04 00:29:13 pinephone NetworkManager[3310]: <warn>  [1656887353.5642] firewall: nft[4381]: command failed: unknown reason

I tried switching from linux-pinephone to linux, but the modem doesn’t work there at all so I couldn’t really test if routing works, but these errors disappeared when running the linux kernel.

Hello,

I am probably coming late, but once the wifi hotspot is created (from the gnome configuration menu), I can make it work with the following commands:

sysctl -w net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j MASQUERADE

With these commands, it activates IP forwarding between the web (modem) and the wifi hotspot. The IP address in the command is the IP from the wifi network.

Sincerely.