I am new and hope I will make myself understandable and will post in adequation with the rules here :-)
I am trying to setup a wifi hotspot under Ubuntu 22.04 to forward internet from the ethernet connection. I can connect to the wifi hotspot with my phone, but the phone has no internet.
What I do:
Desktop PC under ubuntu 22.04 is connected via ethernet to my internet box and has internet. In the settings I turn on the WIFI, then turn on WIFI hotspot, with a WPA password, from there I connect with my phone, the phone connects to the hotspot but has no internet.
Checks I have done:
- ubuntu is up-to-date
- I have tested with the 2 ethernet adapters I have on board the PC: enp3s0 (Broadcom) and eno2 (Intel)
- I have tested this with 2 phones, a Pixel under Android 12 and a Samsung under Android 9, both have no internet
- I have set up in the same manner a hotspot with a laptop under ubuntu 22.04 as well following exactly the same steps and it works flawlessly for both phones
What I have tried:
- Updating /etc/NetworkManager/system-connections with the hotspot address range
- Turned off firewall: ufw disable
- tried linux-wifi-hotspot: https://github.com/lakinduakash/linux-wifi-hotspot
- Played with the routing tables: iptables -t nat -A POSTROUTING -s 10.42.0.0/24 -o eno2 -j MASQUERADE (inspired by How to create a Wi-Fi Hotspot (in Access Point mode)?)
- edited netplan along the lines of Netplan config not working to rename one of the ethernet in eth0
- added the hotspot IP range in /etc/NetworkManager/system-connections/Hotspot.nmconnection
- downgraded wpa_supplicant-2.10 to wpa_supplicant-2.9 from Can't connect to ubuntu 22.04 hotspot
Maybe this helps, ip route returns:
default via 192.168.178.1 dev enp3s0 proto dhcp metric 101
10.42.0.0/24 dev wlo1 proto kernel scope link src 10.42.0.1 metric 600
169.254.0.0/16 dev wlo1 scope link metric 1000
192.168.178.0/24 dev enp3s0 proto kernel scope link src 192.168.178.69 metric 101
Has anyone an idea on what can be wrong?
Many thanks in advance
POL