silver2row

connman stuff

May 8th, 2020
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.56 KB | None | 0 0
  1. From: https://www.embedded-computing.com/articles/the-connman
  2.  
  3. Starting connmand
  4. Options:
  5.  
  6. -c, --config=FILE             Load the specified configuration file instead of /usr/local/etc/connman/main.conf
  7. -d, --debug=DEBUG             Specify debug options to enable
  8. -i, --device=DEV              Specify networking device or interface
  9. -I, --nodevice=DEV            Specify networking interface to ignore
  10. -p, --plugin=NAME,...         Specify plugins to load
  11. -P, --noplugin=NAME,...       Specify plugins not to load
  12. -W, --wifi=NAME               Specify driver for WiFi/Supplicant
  13. -n, --nodaemon                Don't fork daemon to background
  14. -r, --nodnsproxy              Don't enable DNS Proxy
  15. --nobacktrace                 Don't print out backtrace information
  16. Example usage:
  17.  
  18. # CONNMAN_SUPPLICANT_DEBUG=1 connmand -n -d &> connman.log
  19. #connmand -i wlan0 -I eth0 --nodnsproxy --nodaemon >& connman.log
  20. Main configuration file
  21. main.conf
  22. InputRequestTimeout = 120 (default)---------> input request ( ex. passphrase) timeout
  23. BrowserLaunchTimeout = 300 ( default) -----> The request for launching a browser for portal pages
  24. BackgroundScanning = true --------------------> option for background scanning
  25. FallbackTimeservers = --------------------------> List of fallback timeservers ( used by NTP sync) separated by ","
  26. FallbackNameservers = -------------------------> List of fallback nameservers
  27. DefaultAutoConnectTechnologies = -----------> List of technologies that are marked autoconnectable by default.
  28. PreferredTechnologies = ------------------------> List of preferred technologies from - most preferred one to least preferred
  29. NetworkInterfaceBlacklist = vmnet,vboxnet,virbr,ifb,ve-,vb-   ---> List of blacklisted network interfaces
  30. AllowHostnameUpdates = true -----------------> Allow connman to change the system hostname ( ex. dhcp hostname option)
  31. SingleConnectedTechnology = false -----------> Keep only a single connected technology at any time
  32. TetheringTechnologies = wifi,bluetooth,gadget
  33. PersistentTetheringMode = false --------------> Restore earlier tethering status when returning from offline mode
  34. Enable6to4 = false ------------------------------> Automatically enable Anycast 6to4 if possible (not recommended. see RFC6343 )
  35. EnableOnlineCheck = false --------------------> Enable use of http get as on online status check
  36. AlwaysConnectedTechnologies = -------------> List of technologies with AutoConnect = true which are always connected regardless of PreferredTechnologies setting
  37. Connman configuration file
  38. Connman uses configuration files to provision existing services. Connman will be looking for its configuration files at /var/lib/connman/. Configuration file names must not include other characters than letters or numbers and must have a .config suffix.
  39.  
  40. Ex.      #cat /var/lib/connman/example.config
  41. [global]
  42. Name = Example
  43. Description = Example network configuration
  44.  
  45. [service_home_ethernet]
  46. Type = ethernet
  47. IPv4 = 192.168.1.42/255.255.255.0/192.168.1.1
  48. IPv6 = 2001:db8::42/64/2001:db8::1
  49. MAC = 01:02:03:04:05:06
  50. Nameservers = 10.2.3.4,192.168.1.99
  51. SearchDomains = my.home,isp.net
  52. Timeservers = 10.172.2.1,ntp.my.isp.net
  53. Domain = my.home
  54.  
  55. [service_home_wifi]
  56. Type = wifi
  57. Name = my_home_wifi
  58. Passphrase = secret
  59. IPv4 = 192.168.2.2/255.255.255.0/192.168.2.1
  60. MAC = 06:05:04:03:02:01
  61. Settings
  62. Settings and profiles are automatically created for networks the user connects to often.
  63.  
  64. # cat /var/lib/connman/settings
  65.  
  66. [global]
  67.  
  68. OfflineMode=false
  69.  
  70.  
  71.  
  72. [WiFi]
  73.  
  74. Enable=true
  75.  
  76. Tethering=false
  77.  
  78.  
  79.  
  80. [Bluetooth]
  81.  
  82. Enable=false
  83.  
  84. Tethering=false
Add Comment
Please, Sign In to add comment