OpenGoPro icon indicating copy to clipboard operation
OpenGoPro copied to clipboard

Set subnet mask of USB-NCM interface to /12, to allow multi-camera networking

Open Timvrakas opened this issue 3 years ago • 0 comments

Is your feature request related to a problem or use case? Please describe. Yes, related to the networking provided by the USB network interface. Cameras can take an address within the 172.16.0.0/12 subnet range, but they only accept traffic on a /24 subnet within this block, based on their serial number. The goal here to interface a large network of cameras, which will have different serial numbers and thus operate on different subnets. Having all these different subnets that can't inter-operate is very painful.

Describe the solution you'd like The interface should adopt a /12 netmask, and the DHCP server should provide leases with this netmask. It shouldn't matter if the DHCP leases start at 172.16.0.1, or within the /24 range.

Describe alternatives you've considered For the time being my hacky solution is to run a DHCP client and then use firewall rules to forward traffic to the address reported by mdns.

This change could also be enabled as a QR-code feature, if you're hesitant to change functionality that use used for the consumer "webcam" app. In that case, you could disable the DHCP server entirely and just set a static address, for a sort of "advanced networking" mode.

Timvrakas avatar Apr 21 '22 09:04 Timvrakas