secubox-deb/packages/secubox-eye-remote/sysctl.d/99-secubox-usb.conf
CyberMind-FR 01f2bf119d fix(eye-remote): Resolve rp_filter and dual-interface routing issues
Root causes identified and fixed:
- "martian source" packet drops due to rp_filter=1 on USB interfaces
- Dual interface conflict: usb0 (RNDIS) and usb1 (CDC-ECM) both getting
  same IP 10.55.0.2, causing routing loops on Pi Zero

MOCHAbin fixes:
- Add sysctl.d/99-secubox-usb.conf to disable rp_filter globally
- Update udev rules to disable rp_filter per-interface on add
- Add bind/change events for USB re-plug detection
- Update secubox-eye-network.sh with find_interface() and rp_filter disable

Pi Zero fixes:
- Add usb1-disable config to install_zerow.sh to prevent routing conflict

Tested: Ping/TCP connectivity restored, metrics flowing via API.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-05 11:22:31 +02:00

7 lines
223 B
Plaintext

# SecuBox Eye Remote - sysctl configuration
# Disable reverse path filter for USB gadget interfaces
# Prevents "martian source" packet drops on usb0/usb1
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.rp_filter = 0