1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/network/defaults/main.yml

115 lines
3.8 KiB
YAML
Raw Normal View History

# IIAB Networking Doc: https://github.com/iiab/iiab/wiki/IIAB-Networking
# Ansible README: https://github.com/iiab/iiab/tree/master/roles/network
# http://FAQ.IIAB.IO -> click on "Any other networking tips?"
# Firewall (iptables) can be tuned in /etc/iiab/local_vars.yml with this var:
# ports_externally_visible: 3
# https://github.com/iiab/iiab/wiki/IIAB-Networking#firewall-iptables
2019-09-03 18:51:08 +00:00
# Ethernet - IF NECESSARY, CUSTOMIZE THESE 4+1 VARS IN /etc/iiab/local_vars.yml
2019-09-03 22:09:23 +00:00
# See "How do I set a static IP address?" for Ethernet, in http://FAQ.IIAB.IO
2019-09-02 23:58:03 +00:00
# wan_ip: dhcp # wan_ip: 192.168.1.99
# wan_netmask: # wan_netmask: 255.255.255.0
# wan_gateway: # wan_gateway: 192.168.1.254
# wan_nameserver: # wan_nameserver: 192.168.1.254
2019-09-03 18:51:08 +00:00
# wan_try_dhcp_before_static_ip: True # Facilitate field updates w/ cablemodems
2019-09-03 00:29:00 +00:00
# Details @ roles/network/templates/network/dhcpcd.conf.j2 for /etc/dhcpcd.conf
2019-09-02 20:06:07 +00:00
# Wi-Fi - IF NECESSARY, CUSTOMIZE THESE 6 VARIABLES IN /etc/iiab/local_vars.yml
# host_country_code: US
# host_ssid: Internet in a Box
# host_wifi_mode: g
# host_channel: 6
# hostapd_secure: False
# hostapd_password: changeme
#
2020-01-21 17:03:54 +00:00
# hostapd_install: True # 2020-01-21: do not rely on this var for now (might be implemented in future)
# hostapd_enabled: True
2020-04-14 13:07:07 +00:00
# Above set in /opt/iiab/iiab/vars/default_vars.yml
2020-05-13 03:12:41 +00:00
hostapd_wait: 10
host_wireless_n: False
driver_name: nl80211
2020-02-12 20:42:54 +00:00
ap0_mac_addr: b8:27:99:12:34:56
# DNS / name resolution
# dhcpd_install: False
# dhcpd_enabled: False
# named_install: False
# 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)
# Dynamically calculated later
# iiab_network_mode: "Gateway"
# Defaults for network detection
wireless_lan_present: False
strict_networking: False
iiab_demo_mode: False
gui_static_wan: False
wan_cidr: ""
virtual_network_devices: "-e ap0 -e lo -e br0 -e tun -e br- -e docker -e bridge0 -e veth"
# Set defaults for discovery process as strings
wifi1: "not found-1"
wifi2: "not found-2"
can_be_ap: False
exclude_devices: none
device_gw: none
prior_gw_device: unset
2022-06-30 03:48:14 +00:00
# 2022-06-29: Legacy vars no longer used by roles/0-init
discovered_wan_iface: none # 2021-07-30: Very broadly used!
iiab_wan_iface: none
iiab_lan_iface: none
discovered_lan_iface: none
discovered_wired_iface: none
discovered_wireless_iface: none
2017-11-01 12:45:55 +00:00
# Red Hat
2018-05-02 17:38:24 +00:00
#iiab_wired_lan_iface: "none"
#iiab_wireless_lan_iface: "none"
has_WAN: False
has_ifcfg_gw: none
has_wifi_gw: none
2017-11-01 12:45:55 +00:00
# Debian
dhcpcd_result: ""
wan_in_interfaces: False
2017-11-23 06:24:44 +00:00
network_manager_active: False
systemd_networkd_active: False
# The values here are default local variables
gui_wan_iface: unset
gui_static_wan_ip: unset
# wondershaper_dspeed: 4096
# wondershaper_upspeed: 1024
# netplan
fix_dispatcher: True
# Unused
# network_config_dir: /etc/network/interfaces.d
# Originally for @tim-moody's Nodogsplash approach to Captive Portal
# Highly experimental as of June 2018: https://github.com/iiab/iiab/issues/608
#
2019-05-25 11:36:25 +00:00
# Newer: Python-based Captive Portal, that @m-anish & @jvonau experimented with
# in July 2018 (https://github.com/iiab/iiab/pull/870) and that @georgejhunt
2018-10-08 19:45:35 +00:00
# extensively refined in Sept 2018 (https://github.com/iiab/iiab/pull/1179)
# 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
py_captive_portal_port: 9090
py_captive_portal_username: Admin
py_captive_portal_password: changeme
# In a pinch, disable it by running: systemctl disable captive-portal