2019-05-25 10:13:39 +00:00
|
|
|
# IIAB Networking Doc
|
|
|
|
# https://github.com/iiab/iiab/wiki/IIAB-Networking
|
|
|
|
|
2017-09-23 07:03:58 +00:00
|
|
|
# Defaults for network detection
|
|
|
|
wireless_lan_present: False
|
|
|
|
strict_networking: False
|
|
|
|
iiab_demo_mode: False
|
|
|
|
gui_static_wan: False
|
2018-05-13 04:10:41 +00:00
|
|
|
wan_cidr:
|
2017-09-23 07:03:58 +00:00
|
|
|
|
|
|
|
# Set defaults for discovery process as strings
|
|
|
|
wifi1: "not found-1"
|
|
|
|
wifi2: "not found-2"
|
2017-11-01 12:45:55 +00:00
|
|
|
ap_device: "none"
|
|
|
|
device_gw: "none"
|
|
|
|
device_gw2: ""
|
|
|
|
|
|
|
|
iiab_wan_iface: "none"
|
|
|
|
iiab_lan_iface: "none"
|
2018-03-29 20:39:20 +00:00
|
|
|
discovered_lan_iface: "none"
|
2017-11-01 12:45:55 +00:00
|
|
|
discovered_wired_iface: "none"
|
2017-09-23 07:03:58 +00:00
|
|
|
discovered_wireless_iface: "none"
|
2017-11-01 12:45:55 +00:00
|
|
|
|
2018-07-12 17:36:09 +00:00
|
|
|
# Red Hat
|
2018-05-02 17:38:24 +00:00
|
|
|
#iiab_wired_lan_iface: "none"
|
|
|
|
#iiab_wireless_lan_iface: "none"
|
2017-09-23 07:03:58 +00:00
|
|
|
has_WAN: False
|
|
|
|
has_ifcfg_gw: "none"
|
|
|
|
has_wifi_gw: "none"
|
2017-11-01 12:45:55 +00:00
|
|
|
|
2018-07-12 17:36:09 +00:00
|
|
|
# Debian
|
2017-09-23 07:03:58 +00:00
|
|
|
dhcpcd_result: ""
|
|
|
|
wan_in_interfaces: False
|
2017-11-23 06:24:44 +00:00
|
|
|
network_manager_active: False
|
|
|
|
systemd_networkd_active: False
|
2017-09-23 07:03:58 +00:00
|
|
|
|
2019-05-25 10:13:39 +00:00
|
|
|
# The values here are default local variables
|
2017-05-27 18:09:50 +00:00
|
|
|
gui_wan_iface: "unset"
|
|
|
|
gui_static_wan_ip: "unset"
|
|
|
|
gui_desired_network_role: Gateway
|
|
|
|
wondershaper_dspeed: "4096"
|
|
|
|
wondershaper_upspeed: "1024"
|
2017-09-23 07:03:58 +00:00
|
|
|
|
2019-05-25 10:13:39 +00:00
|
|
|
# Dynamically calculated later
|
|
|
|
# iiab_network_mode: "Gateway"
|
|
|
|
|
|
|
|
# ports_externally_visible: 3
|
|
|
|
# Above var set in /etc/iiab/local_vars.yml
|
|
|
|
# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Networking#firewall-iptables
|
|
|
|
|
2018-07-12 17:36:09 +00:00
|
|
|
# Wi-Fi
|
2019-05-25 10:13:39 +00:00
|
|
|
# host_country_code: US
|
|
|
|
# host_ssid: "Internet in a Box"
|
|
|
|
# host_wifi_mode: g
|
|
|
|
# host_channel: 6
|
|
|
|
# hostapd_secure: False
|
|
|
|
# hostapd_password: changeme
|
|
|
|
# Above 6 vars set in /etc/iiab/local_vars.yml: (so implementer sets them)
|
|
|
|
#
|
|
|
|
# hostapd_enabled: True
|
2018-01-01 15:48:24 +00:00
|
|
|
# Above is forcibly set to False (in roles/network/tasks/main.yml) if IIAB is
|
|
|
|
# being WiFi-installed (run "iiab-hotspot-on" AFTER ./iiab-install completes
|
|
|
|
# and content is downloaded, to enable the internal WiFi Access Point / AP!)
|
2019-05-25 10:13:39 +00:00
|
|
|
#
|
|
|
|
# reboot_to_AP: False
|
2018-01-01 15:48:24 +00:00
|
|
|
# For those installing IIAB over WiFi: "reboot_to_AP: True" overrides the above
|
2018-01-01 16:30:02 +00:00
|
|
|
# detection of WiFi-as-gateway, forcing "hostapd_enabled: True" regardless.
|
2019-05-25 10:13:39 +00:00
|
|
|
#
|
|
|
|
# Above 2 vars set in /opt/iiab/iiab/vars/default_vars.yml
|
|
|
|
#
|
|
|
|
hostapd_wait: 5
|
|
|
|
host_wireless_n: False
|
|
|
|
driver_name: nl80211
|
2017-09-23 07:03:58 +00:00
|
|
|
|
2019-05-25 10:13:39 +00:00
|
|
|
# Unused
|
|
|
|
# network_config_dir: /etc/network/interfaces.d
|
2017-09-13 11:07:25 +00:00
|
|
|
|
2018-10-08 21:20:00 +00:00
|
|
|
# DNS / name resolution
|
2019-05-25 10:13:39 +00:00
|
|
|
# dhcpd_install: False
|
|
|
|
# dhcpd_enabled: False
|
|
|
|
# named_install: True
|
|
|
|
# named_enabled: False
|
|
|
|
# dnsmasq_enabled: True
|
|
|
|
# dnsmasq_install: True
|
|
|
|
# dns_jail_enabled: False
|
|
|
|
# Above 7 vars set in /etc/iiab/local_vars.yml
|
|
|
|
#
|
|
|
|
# dhcp_service: ???? # Set in individual OS's /opt/iiab/iiab/vars/<OS>.yml for use in roles/network/tasks/dhcpd.yml
|
|
|
|
# dhcp_service2: "dhcpd disabled" # Moved to roles/network/tasks/computed_services.yml as community transitions from named/BIND to dnsmasq (PR #1202)
|
2018-07-04 12:42:10 +00:00
|
|
|
|
2019-05-25 10:13:39 +00:00
|
|
|
# Originally for @tim-moody's Nodogsplash approach to Captive Portal
|
|
|
|
# Highly experimental as of June 2018: https://github.com/iiab/iiab/issues/608
|
|
|
|
#
|
2018-10-08 19:45:35 +00:00
|
|
|
# Python-based Captive Portal, that @m-anish & @jvonau experimented with in
|
|
|
|
# July 2018 (https://github.com/iiab/iiab/pull/870) and that @georgejhunt
|
|
|
|
# extensively refined in Sept 2018 (https://github.com/iiab/iiab/pull/1179)
|
2019-05-25 10:13:39 +00:00
|
|
|
# captive_portal_install: False
|
|
|
|
# captive_portal_enabled: False
|
|
|
|
# Above 2 vars set in /etc/iiab/local_vars.yml
|
|
|
|
# captive_portal_port: "9090"
|
|
|
|
# Above var set in /opt/iiab/iiab/vars/default_vars.yml
|
2018-07-05 17:24:20 +00:00
|
|
|
py_captive_portal_port: "9090"
|
|
|
|
py_captive_portal_username: "Admin"
|
|
|
|
py_captive_portal_password: "changeme"
|
Cap2 (#1300)
* move captive portal to its own role
* runrole still not working
* make apache name consistent, define py_captive_portal_port
* record android fixes
* some progress -- windows8.1 works but detectportal.firefox active for both mac and windows
* works all platforms
* one captive_portal_install not changed to py_captive...
* port into defaults
* windows 7,8,10,mac,ios,android 5,7
* add # to dnsmasq.d/captive
* guess what android 8 might need
* move captive portal to its own role
* runrole still not working
* make apache name consistent, define py_captive_portal_port
* record android fixes
* some progress -- windows8.1 works but detectportal.firefox active for both mac and windows
* works all platforms
* one captive_portal_install not changed to py_captive...
* port into defaults
* windows 7,8,10,mac,ios,android 5,7
* add # to dnsmasq.d/captive
* guess what android 8 might need
* restart apache2 and dnsmasq in role
* do not hard code apache name
* cut out disfunctional experiments
* variable py_captive_portal_port misspelled
* add wildcard serveralias to box.lan vhost to fix default
* add in STDOUT to log
* remove the py_
* add in msn to urls to capture
* missed a few py_
2018-11-18 04:09:40 +00:00
|
|
|
# In a pinch, disable it by running: systemctl disable captive-portal
|