davesteele / comitup

Bootstrap Wifi support over Wifi
https://davesteele.github.io/comitup/
GNU General Public License v2.0
323 stars 54 forks source link

Networking issues with ipv6 and CONNECTED appliance mode #44

Closed davesteele closed 5 years ago

davesteele commented 5 years ago

The PI is showing a loss of networking on all interfaces when CONNECTED in the dual wifi interface "router" mode. The outage includes the Ethernet interface.

The problem persists when any of the hotspot iptables rules, 'appliance' iptables rules, or WPA kick logic are disabled.

All appears to work fine if:

Note that the usb wifi interface configures to wlan0 on this particular system, and takes the role as hotspot.

The problem extends to older packages and OS images that did not previously have the problem.

Edit - I'm seeing (in CONNECTED single wifi interface) a situation where ethernet connectifity is not there, but the mdns/zeroconf IP discovery is working.

Edit - The introduction of the issue has been traced to the upstream router serving ipv6 DHCP.

carlesgutierrez commented 5 years ago

Dear Dave, thanks for all your software and efforts. This is really cool tool.

I've been experiencing 2 similar issues... I do not fully understand what "dual wifi interface router mode" is.

I'm using a MIFI " TP-Link Mobile Wi-Fi" configured as default (PDP Type: IPv4 & IPv6). Also I'm using my phone (Android) terminal as wifi router ( by default too ) that is giving better results. I've 2 rpi zero w with the lastest comitup installed from your Raspian Image and 2 more with comitup installed by terminal comands.

My issues:

Is this about the same issue? Shall I try to modify my Router configuration? Thanks!

davesteele commented 5 years ago

It is what I call "appliance mode" in the conf file - two wifi interfaces, with routing and masquerading between the hotspot and the upstream connections.

I don't know details on what the problem is yet, or why ipv6 on a wifi interface would preclude ipv4 traffic on the etheret port. I just noticed that some interfaces are suddenly serving ipv6, and that the start of the problems coincided with the introductin of a new ISP-provided home router.

davesteele commented 5 years ago

More news - the work computer (Debian Sid) connected to the Pi is, when it shares both and Ethernet and upstream "appliance mode" wifi connection with the Pi, appears to not respect its ipv4 routes when processing outbound packets destined for the Ethernet connection, and sends them out on the wifi interface instead (with a problematic source ip address for that interface).

davesteele commented 5 years ago

Mitigated by adding a route on the desktop computer with a more restrictive netmask for the Ethernet connection, guaranteeing a win for that route. Not a Pi problem. Closing.