Wifi Integration
Clean up
Fix removing only started workers on update
Set default gateway via tenus lib
Introduce BaseWorker type
and changed the way a worker is killed or turned off
Fix wifi frontend and add missing i18n en
Use channels for worker orchestrating
AP/STA mode working
we have to fix
* on initial creation AP has a client network (needs a dhcp and dns server)
* restarting/reloading the worker properly
Set wifi card link up before scanning
Delete/reset network interfaces on confd clean-up
Split wifi into STA and AP worker
create virtual network interfaces in confd
Serve watcher results via API
Save watcher results to database
Add test function to worker interface
Add wireless station frontend page
Implement wifi scanner and api handler
4. make it possible to scan for networks
Initial wifi integration
1. make it possible to configure and start hostapd
2. make it possible to configure and start wpa_supplicant
3. make it possible to use both (wpa_supplicant and hostapd)
3.1. iw dev wlp5s0 interface add wlp5s0_XX type managed address aa:bb:cc:dd:ee:XX
3.2. (main device must be down) ip link set dev wlp5s0 down
3.3. order matters. start hostapd first!
Co-authored-by: Lukas Matt <lukas@matt.wf>
Reviewed-on: #7
Implement interface link state
this works only for linux distribution see the interface_linux
helper for more information on the topic.
Display link state in settings page
Co-authored-by: Lukas Matt <lukas@matt.wf>
Reviewed-on: #6
Optimize detecting a bridge setup
Fix DHCP server multi-interface bridge setup
Add more log messages and fix cleaning in confd network configuration
Add FindByNetworkID function to network interface model
Remove obsolete interface function from network model
Fix network table clean up process
Add bridge support
Move hardware/setup detection to worker package
Co-authored-by: Lukas Matt <lukas@matt.wf>
Reviewed-on: #5
Fix updating address in network model
Add new configuration key
Run DHCP client and server config on startup
Add DHCP client configuration to confd
Fix pointer in goroutines
dhclient
Use IP or IPNet Stringer
Set default network object to dhcp client
Remove obsolete configuration values
Set router as primary DNS server
Fix IPv4 DHCP server
Fix multiple issues including DNS not starting properly
Rename DhcpWorker to DhcpServerWorker
Start/stop DNS server worker
Shutdown worker if alive false
Support A and AAAA records
Add new db model DnsRecord
Merge NetIP, NetworkIP and NetworkIPNet
Co-authored-by: Lukas Matt <lukas@matt.wf>
Reviewed-on: #2
* Fix setting isLoggedIn to true while logged-out
* Add loading splash screen to frontend
* Finish implementing frontend changes for network tab
* Add more interface information
* Modularize the application server
* Fix db connection string and logging
* Move handler, helper, model, netfilter, types, utils and worker functions