BE CAREFUL WITH THE FIREWALL
First try:
sudo ufw disable
If that solves the problem, you can do:
sudo ufw enable
sudo ufw allow in on wlo1
sudo ufw route allow out on enp41s0
My system works with:
$ sudo ufw status numbered
[ 1] Anywhere on wlo1 ALLOW IN Anywhere
[ 2] Anywhere on enp41s0 ALLOW FWD Anywhere (out)
[ 3] Anywhere (v6) on wlo1 ALLOW IN Anywhere (v6)
[ 4] Anywhere (v6) on enp41s0 ALLOW FWD Anywhere (v6) (out)
Only [ 1]
and [ 2]
are strictly necessary.
#----------------------------------------------------- On my system:
With WiFi on:
ifconfig
> enp41s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 192.168.2.115 netmask 255.255.255.0 broadcast 192.168.2.255
> inet6 fe80::19b0:6542:ee4:5982 prefixlen 64 scopeid 0x20<link>
> ether 00:d8:61:9e:2b:52 txqueuelen 1000 (Ethernet)
> RX packets 46282 bytes 39478576 (39.4 MB)
> RX errors 0 dropped 4 overruns 0 frame 0
> TX packets 38257 bytes 7380268 (7.3 MB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> enp42s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
> ether 00:d8:61:9e:2b:53 txqueuelen 1000 (Ethernet)
> RX packets 0 bytes 0 (0.0 B)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 0 bytes 0 (0.0 B)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
> inet 127.0.0.1 netmask 255.0.0.0
> inet6 ::1 prefixlen 128 scopeid 0x10<host>
> loop txqueuelen 1000 (Local Loopback)
> RX packets 1981 bytes 318831 (318.8 KB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 1981 bytes 318831 (318.8 KB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 192.168.2.115 netmask 255.255.255.0 broadcast 192.168.2.255
> inet6 fe80::1c39:c0d6:43bd:fcf0 prefixlen 64 scopeid 0x20<link>
> ether 38:00:25:95:18:02 txqueuelen 1000 (Ethernet)
> RX packets 50 bytes 17772 (17.7 KB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 48 bytes 7067 (7.0 KB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
This means that the WiFi hotspot:
- Input is from
wlo1
- Output is to
enp42s0
route print
command on the host Windows machine when connected via normal Wifi, and (3) the results ofroute print
command on the host Windows machine when connected via the mobile hotspot.