balena-io-modules / network-manager

Rust NetworkManager bindings
Apache License 2.0
37 stars 30 forks source link

Captive portal hotspot creation support #81

Closed majorz closed 7 years ago

majorz commented 7 years ago

To support captive portal implementation scenario, we need hotspot creation without spawning the default DHCP and forwarding DNS server. A shortcut solution for this is to add a new optional address argument to the WifiDevice::create_hotspot method. If an address is specified, the hotspot ipv4 connection will be created in manual mode instead of shared, and thus the interface will not be NAT-ed to the current default connection and dnsmasq will not be started.