2021-09-18 12:00:30 +02:00
version = "1.0"
[ main ]
2021-09-20 19:19:01 +02:00
name = "Configuration"
2021-09-18 12:00:30 +02:00
[ main . service ]
2021-09-20 19:19:01 +02:00
name = ""
2021-09-18 12:00:30 +02:00
optional = false
2021-10-18 01:39:24 +02:00
2021-09-20 18:01:28 +02:00
[ main . service . no_antenna ]
2021-10-18 01:39:24 +02:00
# The value is filled via a custom getter
type = "boolean"
visible = "false"
[ main . service . no_antenna_alert ]
2021-09-20 18:01:28 +02:00
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."
type = "alert"
style = "danger"
visible = "no_antenna"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . service . status ]
ask = "The status of your VPN is unknown."
type = "alert"
style = "info"
2021-09-20 18:01:28 +02:00
visible = "! no_antenna"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . service . service_enabled ]
ask = "Enable Hotspot"
type = "boolean"
2021-09-20 18:01:28 +02:00
visible = "! no_antenna"
2021-09-18 12:00:30 +02:00
[ main . service . wifi_device ]
ask = "Device"
type = "select"
choices . wlan0 = "wlan0"
2021-09-20 18:01:28 +02:00
visible = "! no_antenna"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . service . wifi_channel ]
ask = "Channel"
type = "select"
choices . 1 = "1"
choices . 2 = "2"
choices . 3 = "3"
choices . 4 = "4"
choices . 5 = "5"
choices . 6 = "6"
choices . 7 = "7"
choices . 8 = "8"
choices . 9 = "9"
choices . 10 = "10"
choices . 11 = "11"
2021-09-20 18:01:28 +02:00
visible = "! no_antenna"
2021-10-13 14:31:02 +02:00
help = "Changing the channel may help with signal strength depending on neighbour WiFis"
2021-10-18 01:39:24 +02:00
2021-09-20 18:01:28 +02:00
[ main . service . multissid ]
2021-10-13 14:31:02 +02:00
ask = "Number of hotspots to broadcast"
2021-09-20 18:01:28 +02:00
type = "select"
choices . 1 = "1"
choices . 2 = "2"
choices . 3 = "3"
visible = "! no_antenna"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot1 ]
name = "Hotspot 1"
optional = false
2021-09-20 18:01:28 +02:00
visible = "! no_antenna"
2021-09-18 12:00:30 +02:00
[ main . hotspot1 . wifi_ssid__1 ]
ask = "Name (SSID)"
type = "string"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
pattern . regexp = '^[\w \-]{1,32}$'
pattern . error = "SSID in this app are limited to letter, number space, dash and underscores."
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot1 . wifi_secure__1 ]
ask = "Secure"
type = "boolean"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
[ main . hotspot1 . wifi_passphrase__1 ]
ask = "Password (WPA2)"
type = "string"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
redact = true
2021-09-20 18:01:28 +02:00
optional = true
2021-10-18 01:39:24 +02:00
visible = "wifi_secure__1"
2021-09-20 18:01:28 +02:00
pattern . regexp = '^[a-zA-Z0-9]{8,63}$'
pattern . error = "Only printable alphanumeric characters are permitted in your password. Maximal size 63 chars"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot1 . advanced__1 ]
ask = "Advanced settings"
type = "boolean"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot1 . ip4_nat_prefix__1 ]
ask = "IPv4 NAT prefix (/24)"
type = "string"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
visible = "advanced__1"
2021-09-20 18:01:28 +02:00
pattern . regexp = '^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$'
pattern . error = "Please provide a private /24 range in the format xxx.xxx.xxx"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot1 . ip6_net__1 ]
ask = "IPv6 delegated prefix"
type = "string"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-10-17 21:50:49 +02:00
optional = true
2021-09-18 12:00:30 +02:00
visible = "advanced__1"
2021-09-20 18:01:28 +02:00
pattern . regexp = '^[0-9a-fA-F:]+$'
2021-09-18 12:00:30 +02:00
pattern . error = "Please provide a valid IPv6 Prefix"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot1 . ip6_firewall__1 ]
ask = "IPv6 firewall"
type = "boolean"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
visible = "advanced__1"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot1 . dns__1 ]
ask = "DNS resolvers"
type = "tags"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
visible = "advanced__1"
2021-09-20 18:01:28 +02:00
pattern . regexp = '^([0-9.]{7,15}|[0-9a-fA-F:]+)$'
2021-09-18 12:00:30 +02:00
pattern . error = "Not an ip"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot2 ]
name = "Hotspot 2"
2021-09-20 18:01:28 +02:00
visible = "! no_antenna && multissid >= 2"
2021-09-18 12:00:30 +02:00
[ main . hotspot2 . wifi_ssid__2 ]
ask = "Name (SSID)"
type = "string"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
pattern . regexp = '^[\w \-]{1,32}$'
pattern . error = "SSID in this app are limited to letter, number space, dash and underscores."
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot2 . wifi_secure__2 ]
ask = "Secure"
type = "boolean"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
[ main . hotspot2 . wifi_passphrase__2 ]
ask = "Password (WPA2)"
type = "string"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
redact = true
2021-10-18 01:39:24 +02:00
visible = "wifi_secure__2"
2021-09-20 18:01:28 +02:00
pattern . regexp = '^[a-zA-Z0-9]{8,63}$'
pattern . error = "Only printable alphanumeric characters are permitted in your password. Maximal size 63 chars"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot2 . advanced__2 ]
ask = "Advanced settings"
type = "boolean"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot2 . ip4_nat_prefix__2 ]
ask = "IPv4 NAT prefix (/24)"
type = "string"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
visible = "advanced__2"
2021-09-20 18:01:28 +02:00
pattern . regexp = '^[0-9.]{7,15}$'
2021-09-18 12:00:30 +02:00
pattern . error = "Please provide a valid IP"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot2 . ip6_net__2 ]
ask = "IPv6 delegated prefix"
type = "string"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
visible = "advanced__2"
2021-09-20 18:01:28 +02:00
pattern . regexp = '^[0-9a-fA-F:]+$'
2021-09-18 12:00:30 +02:00
pattern . error = "Please provide a valid IPv6 Prefix"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot2 . ip6_firewall__2 ]
ask = "IPv6 firewall"
type = "boolean"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
visible = "advanced__2"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot2 . dns__2 ]
ask = "DNS resolvers"
type = "tags"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
visible = "advanced__2"
2021-09-20 18:01:28 +02:00
pattern . regexp = '^([0-9.]{7,15}|[0-9a-fA-F:]+)$'
2021-09-18 12:00:30 +02:00
pattern . error = "Not an ip"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot3 ]
name = "Hotspot 3"
2021-09-20 18:01:28 +02:00
visible = "! no_antenna && multissid >= 3"
2021-09-18 12:00:30 +02:00
[ main . hotspot3 . wifi_ssid__3 ]
ask = "Name (SSID)"
type = "string"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
pattern . regexp = '^[\w \-]{1,32}$'
pattern . error = "SSID in this app are limited to letter, number space, dash and underscores."
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot3 . wifi_secure__3 ]
ask = "Secure"
type = "boolean"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
[ main . hotspot3 . wifi_passphrase__3 ]
ask = "Password (WPA2)"
type = "string"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
redact = true
2021-10-18 01:39:24 +02:00
visible = "wifi_secure__3"
2021-09-20 18:01:28 +02:00
pattern . regexp = '^[a-zA-Z0-9]{8,63}$'
pattern . error = "Only printable alphanumeric characters are permitted in your password. Maximal size 63 chars"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot3 . advanced__3 ]
ask = "Advanced settings"
type = "boolean"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot3 . ip4_nat_prefix__3 ]
ask = "IPv4 NAT prefix (/24)"
type = "string"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
visible = "advanced__3"
2021-09-20 18:01:28 +02:00
pattern . regexp = '^[0-9.]{7,15}$'
2021-09-18 12:00:30 +02:00
pattern . error = "Please provide a valid IP"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot3 . ip6_net__3 ]
ask = "IPv6 delegated prefix"
type = "string"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
visible = "advanced__3"
2021-09-20 18:01:28 +02:00
pattern . regexp = '^[0-9a-fA-F:]+$'
2021-09-18 12:00:30 +02:00
pattern . error = "Please provide a valid IPv6 Prefix"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot3 . ip6_firewall__3 ]
ask = "IPv6 firewall"
type = "boolean"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
visible = "advanced__3"
2021-10-18 01:39:24 +02:00
2021-09-18 12:00:30 +02:00
[ main . hotspot3 . dns__3 ]
ask = "DNS resolvers"
type = "tags"
2021-09-20 18:01:28 +02:00
bind = "array_settings()"
2021-09-18 12:00:30 +02:00
visible = "advanced__3"
2021-09-20 18:01:28 +02:00
pattern . regexp = '^([0-9.]{7,15}|[0-9a-fA-F:]+)$'
2021-09-18 12:00:30 +02:00
pattern . error = "Not an ip"
2021-10-18 01:39:24 +02:00