config_panel.toml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. version = "1.0"
  2. [main]
  3. name = "Configuration"
  4. [main.service]
  5. name = ""
  6. optional = false
  7. [main.service.no_antenna]
  8. ask = "No wifi antenna has been detected! If you use a wifi USB dongle and that this one is not listed here, try to unplug and replug it, then reload this page."
  9. type = "alert"
  10. style = "danger"
  11. visible = "no_antenna"
  12. [main.service.status]
  13. ask = "The status of your VPN is unknown."
  14. type = "alert"
  15. style = "info"
  16. visible = "! no_antenna"
  17. [main.service.service_enabled]
  18. ask = "Enable Hotspot"
  19. type = "boolean"
  20. visible = "! no_antenna"
  21. [main.service.wifi_device]
  22. ask = "Device"
  23. type = "select"
  24. choices.wlan0 = "wlan0"
  25. visible = "! no_antenna"
  26. [main.service.wifi_channel]
  27. ask = "Channel"
  28. type = "select"
  29. choices.1 = "1"
  30. choices.2 = "2"
  31. choices.3 = "3"
  32. choices.4 = "4"
  33. choices.5 = "5"
  34. choices.6 = "6"
  35. choices.7 = "7"
  36. choices.8 = "8"
  37. choices.9 = "9"
  38. choices.10 = "10"
  39. choices.11 = "11"
  40. visible = "! no_antenna"
  41. help = "Changing the channel may help with signal strength depending on neighbour WiFis"
  42. [main.service.multissid]
  43. ask = "Number of hotspots to broadcast"
  44. type = "select"
  45. choices.1 = "1"
  46. choices.2 = "2"
  47. choices.3 = "3"
  48. visible = "! no_antenna"
  49. [main.hotspot1]
  50. name = "Hotspot 1"
  51. optional = false
  52. visible = "! no_antenna"
  53. [main.hotspot1.wifi_ssid__1]
  54. ask = "Name (SSID)"
  55. type = "string"
  56. bind = "array_settings()"
  57. pattern.regexp = '^[\w \-]{1,32}$'
  58. pattern.error = "SSID in this app are limited to letter, number space, dash and underscores."
  59. [main.hotspot1.wifi_secure__1]
  60. ask = "Secure"
  61. type = "boolean"
  62. bind = "array_settings()"
  63. [main.hotspot1.wifi_passphrase__1]
  64. ask = "Password (WPA2)"
  65. type = "string"
  66. bind = "array_settings()"
  67. redact = true
  68. optional = true
  69. visible = "wifi_secure__1"
  70. pattern.regexp = '^[a-zA-Z0-9]{8,63}$'
  71. pattern.error = "Only printable alphanumeric characters are permitted in your password. Maximal size 63 chars"
  72. [main.hotspot1.advanced__1]
  73. ask = "Advanced settings"
  74. type = "boolean"
  75. bind = "array_settings()"
  76. [main.hotspot1.ip4_nat_prefix__1]
  77. ask = "IPv4 NAT prefix (/24)"
  78. type = "string"
  79. bind = "array_settings()"
  80. visible = "advanced__1"
  81. pattern.regexp = '^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$'
  82. pattern.error = "Please provide a private /24 range in the format xxx.xxx.xxx"
  83. [main.hotspot1.ip6_net__1]
  84. ask = "IPv6 delegated prefix"
  85. type = "string"
  86. bind = "array_settings()"
  87. optional = true
  88. visible = "advanced__1"
  89. pattern.regexp = '^[0-9a-fA-F:]+$'
  90. pattern.error = "Please provide a valid IPv6 Prefix"
  91. [main.hotspot1.ip6_firewall__1]
  92. ask = "IPv6 firewall"
  93. type = "boolean"
  94. bind = "array_settings()"
  95. visible = "advanced__1"
  96. [main.hotspot1.dns__1]
  97. ask = "DNS resolvers"
  98. type = "tags"
  99. bind = "array_settings()"
  100. visible = "advanced__1"
  101. pattern.regexp = '^([0-9.]{7,15}|[0-9a-fA-F:]+)$'
  102. pattern.error = "Not an ip"
  103. [main.hotspot2]
  104. name = "Hotspot 2"
  105. visible = "! no_antenna && multissid >= 2"
  106. [main.hotspot2.wifi_ssid__2]
  107. ask = "Name (SSID)"
  108. type = "string"
  109. bind = "array_settings()"
  110. pattern.regexp = '^[\w \-]{1,32}$'
  111. pattern.error = "SSID in this app are limited to letter, number space, dash and underscores."
  112. [main.hotspot2.wifi_secure__2]
  113. ask = "Secure"
  114. type = "boolean"
  115. bind = "array_settings()"
  116. [main.hotspot2.wifi_passphrase__2]
  117. ask = "Password (WPA2)"
  118. type = "string"
  119. bind = "array_settings()"
  120. redact = true
  121. visible = "wifi_secure__2"
  122. pattern.regexp = '^[a-zA-Z0-9]{8,63}$'
  123. pattern.error = "Only printable alphanumeric characters are permitted in your password. Maximal size 63 chars"
  124. [main.hotspot2.advanced__2]
  125. ask = "Advanced settings"
  126. type = "boolean"
  127. bind = "array_settings()"
  128. [main.hotspot2.ip4_nat_prefix__2]
  129. ask = "IPv4 NAT prefix (/24)"
  130. type = "string"
  131. bind = "array_settings()"
  132. visible = "advanced__2"
  133. pattern.regexp = '^[0-9.]{7,15}$'
  134. pattern.error = "Please provide a valid IP"
  135. [main.hotspot2.ip6_net__2]
  136. ask = "IPv6 delegated prefix"
  137. type = "string"
  138. bind = "array_settings()"
  139. visible = "advanced__2"
  140. pattern.regexp = '^[0-9a-fA-F:]+$'
  141. pattern.error = "Please provide a valid IPv6 Prefix"
  142. [main.hotspot2.ip6_firewall__2]
  143. ask = "IPv6 firewall"
  144. type = "boolean"
  145. bind = "array_settings()"
  146. visible = "advanced__2"
  147. [main.hotspot2.dns__2]
  148. ask = "DNS resolvers"
  149. type = "tags"
  150. bind = "array_settings()"
  151. visible = "advanced__2"
  152. pattern.regexp = '^([0-9.]{7,15}|[0-9a-fA-F:]+)$'
  153. pattern.error = "Not an ip"
  154. [main.hotspot3]
  155. name = "Hotspot 3"
  156. visible = "! no_antenna && multissid >= 3"
  157. [main.hotspot3.wifi_ssid__3]
  158. ask = "Name (SSID)"
  159. type = "string"
  160. bind = "array_settings()"
  161. pattern.regexp = '^[\w \-]{1,32}$'
  162. pattern.error = "SSID in this app are limited to letter, number space, dash and underscores."
  163. [main.hotspot3.wifi_secure__3]
  164. ask = "Secure"
  165. type = "boolean"
  166. bind = "array_settings()"
  167. [main.hotspot3.wifi_passphrase__3]
  168. ask = "Password (WPA2)"
  169. type = "string"
  170. bind = "array_settings()"
  171. redact = true
  172. visible = "wifi_secure__3"
  173. pattern.regexp = '^[a-zA-Z0-9]{8,63}$'
  174. pattern.error = "Only printable alphanumeric characters are permitted in your password. Maximal size 63 chars"
  175. [main.hotspot3.advanced__3]
  176. ask = "Advanced settings"
  177. type = "boolean"
  178. bind = "array_settings()"
  179. [main.hotspot3.ip4_nat_prefix__3]
  180. ask = "IPv4 NAT prefix (/24)"
  181. type = "string"
  182. bind = "array_settings()"
  183. visible = "advanced__3"
  184. pattern.regexp = '^[0-9.]{7,15}$'
  185. pattern.error = "Please provide a valid IP"
  186. [main.hotspot3.ip6_net__3]
  187. ask = "IPv6 delegated prefix"
  188. type = "string"
  189. bind = "array_settings()"
  190. visible = "advanced__3"
  191. pattern.regexp = '^[0-9a-fA-F:]+$'
  192. pattern.error = "Please provide a valid IPv6 Prefix"
  193. [main.hotspot3.ip6_firewall__3]
  194. ask = "IPv6 firewall"
  195. type = "boolean"
  196. bind = "array_settings()"
  197. visible = "advanced__3"
  198. [main.hotspot3.dns__3]
  199. ask = "DNS resolvers"
  200. type = "tags"
  201. bind = "array_settings()"
  202. visible = "advanced__3"
  203. pattern.regexp = '^([0-9.]{7,15}|[0-9a-fA-F:]+)$'
  204. pattern.error = "Not an ip"