config_panel.toml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. version = "1.0"
  2. [main]
  3. name = "Auto-configuration"
  4. [main.service]
  5. name = "Service"
  6. optional = false
  7. [main.service.status]
  8. ask = "The status of your VPN is unknown."
  9. type = "alert"
  10. style = "info"
  11. [main.service.service_enabled]
  12. ask = "Enable Hotspot"
  13. type = "boolean"
  14. [main.service.doc]
  15. ask = "You need to select a wifi antenna interface. 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."
  16. type = "alert"
  17. style = "warning"
  18. [main.service.wifi_device]
  19. ask = "Device"
  20. type = "select"
  21. choices.wlan0 = "wlan0"
  22. [main.service.wifi_channel]
  23. ask = "Channel"
  24. type = "select"
  25. choices.1 = "1"
  26. choices.2 = "2"
  27. choices.3 = "3"
  28. choices.4 = "4"
  29. choices.5 = "5"
  30. choices.6 = "6"
  31. choices.7 = "7"
  32. choices.8 = "8"
  33. choices.9 = "9"
  34. choices.10 = "10"
  35. choices.11 = "11"
  36. [main.service.ssid_nb]
  37. ask = "Hotspot number"
  38. type = "number"
  39. min = 1
  40. max = 3
  41. [main.hotspot1]
  42. name = "Hotspot 1"
  43. optional = false
  44. [main.hotspot1.wifi_ssid__1]
  45. ask = "Name (SSID)"
  46. type = "string"
  47. pattern.regexp = '^[\w \-]{1,32}$"
  48. pattern.error = 'SSID in this app are limited to letter, number space, dash and underscores."
  49. [main.hotspot1.wifi_secure__1]
  50. ask = "Secure"
  51. type = "boolean"
  52. [main.hotspot1.wifi_passphrase__1]
  53. ask = "Password (WPA2)"
  54. type = "string"
  55. redact = true
  56. visible = "wifi_secure__1"
  57. [main.hotspot1.advanced__1]
  58. ask = "Advanced settings"
  59. type = "boolean"
  60. [main.hotspot1.ip4_nat_prefix__1]
  61. ask = "IPv4 NAT prefix (/24)"
  62. type = "string"
  63. visible = "advanced__1"
  64. pattern.regexp = "^[0-9.]{7,15}$"
  65. pattern.error = "Please provide a valid IP"
  66. [main.hotspot1.ip6_net__1]
  67. ask = "IPv6 delegated prefix"
  68. type = "string"
  69. visible = "advanced__1"
  70. pattern.regexp = "^[0-9a-fA-F:]+$"
  71. pattern.error = "Please provide a valid IPv6 Prefix"
  72. [main.hotspot1.ip6_firewall__1]
  73. ask = "IPv6 firewall"
  74. type = "boolean"
  75. visible = "advanced__1"
  76. [main.hotspot1.dns__1]
  77. ask = "DNS resolvers"
  78. type = "tags"
  79. visible = "advanced__1"
  80. pattern.regexp = "^([0-9.]{7,15}|[0-9a-fA-F:]+)$"
  81. pattern.error = "Not an ip"
  82. [main.hotspot2]
  83. name = "Hotspot 2"
  84. visible = "ssid_nb >= 2"
  85. [main.hotspot2.wifi_ssid__2]
  86. ask = "Name (SSID)"
  87. type = "string"
  88. pattern.regexp = '^[\w \-]{1,32}$"
  89. pattern.error = 'SSID in this app are limited to letter, number space, dash and underscores."
  90. [main.hotspot2.wifi_secure__2]
  91. ask = "Secure"
  92. type = "boolean"
  93. [main.hotspot2.wifi_passphrase__2]
  94. ask = "Password (WPA2)"
  95. type = "string"
  96. redact = true
  97. visible = "wifi_secure__2"
  98. [main.hotspot2.advanced__2]
  99. ask = "Advanced settings"
  100. type = "boolean"
  101. [main.hotspot2.ip4_nat_prefix__2]
  102. ask = "IPv4 NAT prefix (/24)"
  103. type = "string"
  104. visible = "advanced__2"
  105. pattern.regexp = "^[0-9.]{7,15}$"
  106. pattern.error = "Please provide a valid IP"
  107. [main.hotspot2.ip6_net__2]
  108. ask = "IPv6 delegated prefix"
  109. type = "string"
  110. visible = "advanced__2"
  111. pattern.regexp = "^[0-9a-fA-F:]+$"
  112. pattern.error = "Please provide a valid IPv6 Prefix"
  113. [main.hotspot2.ip6_firewall__2]
  114. ask = "IPv6 firewall"
  115. type = "boolean"
  116. visible = "advanced__2"
  117. [main.hotspot2.dns__2]
  118. ask = "DNS resolvers"
  119. type = "tags"
  120. visible = "advanced__2"
  121. pattern.regexp = "^([0-9.]{7,15}|[0-9a-fA-F:]+)$"
  122. pattern.error = "Not an ip"
  123. [main.hotspot3]
  124. name = "Hotspot 3"
  125. visible = "ssid_nb >= 3"
  126. [main.hotspot3.wifi_ssid__3]
  127. ask = "Name (SSID)"
  128. type = "string"
  129. pattern.regexp = '^[\w \-]{1,32}$"
  130. pattern.error = 'SSID in this app are limited to letter, number space, dash and underscores."
  131. [main.hotspot3.wifi_secure__3]
  132. ask = "Secure"
  133. type = "boolean"
  134. [main.hotspot3.wifi_passphrase__3]
  135. ask = "Password (WPA2)"
  136. type = "string"
  137. redact = true
  138. visible = "wifi_secure__3"
  139. [main.hotspot3.advanced__3]
  140. ask = "Advanced settings"
  141. type = "boolean"
  142. [main.hotspot3.ip4_nat_prefix__3]
  143. ask = "IPv4 NAT prefix (/24)"
  144. type = "string"
  145. visible = "advanced__3"
  146. pattern.regexp = "^[0-9.]{7,15}$"
  147. pattern.error = "Please provide a valid IP"
  148. [main.hotspot3.ip6_net__3]
  149. ask = "IPv6 delegated prefix"
  150. type = "string"
  151. visible = "advanced__3"
  152. pattern.regexp = "^[0-9a-fA-F:]+$"
  153. pattern.error = "Please provide a valid IPv6 Prefix"
  154. [main.hotspot3.ip6_firewall__3]
  155. ask = "IPv6 firewall"
  156. type = "boolean"
  157. visible = "advanced__3"
  158. [main.hotspot3.dns__3]
  159. ask = "DNS resolvers"
  160. type = "tags"
  161. visible = "advanced__3"
  162. pattern.regexp = "^([0-9.]{7,15}|[0-9a-fA-F:]+)$"
  163. pattern.error = "Not an ip"