1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
Commit graph

351 commits

Author SHA1 Message Date
Jerry Vonau
7fd6fc9737 test wifi exit if no ssid is found 2020-05-07 12:23:07 -05:00
Jerry Vonau
050722f3a0 ubuntu hook for channel change 2020-05-07 12:23:07 -05:00
Jerry Vonau
7ca4664473 flying edit only when different 2020-05-07 12:23:07 -05:00
Jerry Vonau
ec7ad926d1 netplan country= workaround 2020-05-07 12:03:51 -05:00
Jerry Vonau
664b540fdb update iiab-hotspot-on|off 2020-05-07 12:03:51 -05:00
Jerry Vonau
f150d09eae wifi-test needs before networkd 2020-05-07 12:03:51 -05:00
Jerry Vonau
6fb76de522 deal with netplan 2020-05-07 12:03:51 -05:00
Jerry Vonau
83793e72e4 running model 2020-05-07 12:03:51 -05:00
Jerry Vonau
359f2b4b1c br0 online tuning 2020-05-07 12:03:51 -05:00
Jerry Vonau
842a14269a better handling of 2.4/5 on the same ssid 2020-05-07 12:03:51 -05:00
Jerry Vonau
4ad83f787b test-wifi touchups 2020-05-07 12:03:51 -05:00
Jerry Vonau
37ed8a6ba4 keep the pids known 2020-05-07 12:03:51 -05:00
Jerry Vonau
000d4ec35c ap0 notes 2020-05-07 12:03:51 -05:00
Jerry Vonau
c6a2140329 edit hostapd on the fly 2020-05-07 12:03:51 -05:00
Jerry Vonau
e125537c0c ap0 - introduce wifi-test.service 2020-05-07 12:03:51 -05:00
Jerry Vonau
8669a97d18 ap0 - split cloning 2020-05-07 12:03:51 -05:00
Jerry Vonau
784d89d3a9 default manage.conf to enabled for wifi installs 2020-05-01 20:51:28 -05:00
Jerry Vonau
3d4b23f2fe exclude NM from touching ap0 2020-05-01 10:27:49 -05:00
Jerry Vonau
5dd283f84e hotspots 2020-05-01 10:27:49 -05:00
Jerry Vonau
7307962067 manage.conf.j2 2020-05-01 10:27:49 -05:00
Jerry Vonau
40cbebca46 hostapd - netplan @ -> - 2020-05-01 10:27:48 -05:00
Jerry Vonau
b8cf8712c2 netd-disp tuning 2020-05-01 10:27:48 -05:00
Jerry Vonau
bb487777fa start hostapd before NM 2020-05-01 10:27:48 -05:00
Jerry Vonau
7e5ce367a2 don't stall boot if br0 has no slaves 2020-05-01 10:27:48 -05:00
Jerry Vonau
13d7c38a73 on|off for wifi_up_down 2020-05-01 10:27:47 -05:00
George Hunt
207cc98255 revert hotspot on/off to master before ap0 when wifi_up_down is false 2020-05-01 10:27:47 -05:00
George Hunt
ab0cb6fc90 disable hostspot on/off if up/down enabled 2020-05-01 10:27:47 -05:00
Jerry Vonau
640dbd64ea use wifi_up_down to set iiab_wireless_lan_iface 2020-05-01 10:27:47 -05:00
Jerry Vonau
4d9d925db8 one template - 2 copies 2020-05-01 10:27:47 -05:00
Jerry Vonau
04c876b28a don't clobber later revisions to hostapd.service.j2 2020-05-01 10:27:47 -05:00
Jerry Vonau
2059de2383 forgot .service 2020-05-01 10:27:47 -05:00
Jerry Vonau
3b0be9d865 touchup hostapd.service.j2 for Raspbian 2020-05-01 10:27:46 -05:00
Jerry Vonau
ef7ad60800 netplan - need to start netplan-wpa@ after hostapd 2020-05-01 10:27:46 -05:00
Jerry Vonau
3d5428b0a5 sysd-netd-debian - multi wired slaves 2020-05-01 10:27:46 -05:00
Jerry Vonau
ccb1bf348a adjust networkd-dispatcher dnsmasq script 2020-05-01 10:27:46 -05:00
Jerry Vonau
d0a27ce0df systemd-networkd version of dhcpcd's 50-hostapd hook 2020-05-01 10:27:46 -05:00
Jerry Vonau
36212548f4 hostapd.service - Before wpa_supplicant 2020-05-01 10:27:46 -05:00
Jerry Vonau
aab9c1ba87 setup auto restart of hostapd - based on current stock service file 2020-05-01 10:27:45 -05:00
Jerry Vonau
7b1f7016e5 remove is_rpi -> is_raspbian, more notes 2020-05-01 10:27:45 -05:00
Jerry Vonau
37da7407d4 update iiab-hotspot support files 2020-05-01 10:27:45 -05:00
Jerry Vonau
0bcf3c8184 update dhcpcd hook 2020-05-01 10:27:45 -05:00
Jerry Vonau
3f749036e4 update hostapd.service 2020-05-01 10:27:45 -05:00
Jerry Vonau
75133bd711 refine hostapd.service.j2 2020-05-01 10:27:45 -05:00
Jerry Vonau
218872c637 refine hostapd.service 2020-05-01 10:27:45 -05:00
Jerry Vonau
79a829dabe softcode apo_mac_addr 2020-05-01 10:27:45 -05:00
Jerry Vonau
71907893cb set ap0 mac_addr to be different from wlan0 2020-05-01 10:27:45 -05:00
Jerry Vonau
c56b9e6510 use hostapd's service file to create ap0 2020-05-01 10:27:45 -05:00
Jerry Vonau
6ba20a63e9 start hostapd before dhcpcd 2020-05-01 10:27:44 -05:00
Jerry Vonau
d03df344ff alter dhcpcd.conf for ap0 2020-05-01 10:27:44 -05:00
Jerry Vonau
87b86000b2 method to creat ap0 and have hostapd use it 2020-05-01 10:27:44 -05:00
root
cb1a708abb rm 25 *.deprecated files/dirs 2020-04-20 11:07:00 -04:00
Jerry Vonau
845d88cf41 network - reduce is_rpi or move to is_raspbian 2020-03-04 17:00:01 -06:00
Jerry Vonau
22e5159597 gui_desired_network_role is defined 2020-02-16 07:10:01 -06:00
A Holt
60a9386914
Update br0.j2 2020-01-06 09:06:54 -05:00
Anish Mangal
3e486d7fcf fix #1419 rename xsce stuff to iiab 2020-01-06 13:58:48 +00:00
A Holt
fba1c05f5a
Update hosts-dnsmasq.j2 2019-12-15 22:48:29 -05:00
A Holt
c827275cc3
Update hosts-dnsmasq.j2 2019-12-11 00:55:44 -05:00
Jerry Vonau
084f2a0328 use alternate hosts file for dnsmasq 2019-12-02 00:41:12 -06:00
A Holt
7c4c1289b5
Eliminate old commented code 2019-09-03 18:49:23 -04:00
A Holt
768599e446
Update dhcpcd.conf.j2 2019-09-03 16:46:10 -04:00
A Holt
88bc30e8d6
Update dhcpcd.conf.j2 2019-09-03 16:42:44 -04:00
A Holt
cefa3119cf
Clarify why we AVOID "denyinterfaces eth0" on RPi 2019-09-03 16:03:52 -04:00
A Holt
64919e2439
profile eth0 -> interface eth0 when wan_try_dhcp_before_static_ip == False 2019-09-03 15:23:15 -04:00
A Holt
db1fa162e1
rm arping; create var wan_try_dhcp_before_static_ip 2019-09-03 14:36:43 -04:00
A Holt
af2c3508d7
Update dhcpcd.conf.j2 2019-09-03 00:13:33 -04:00
A Holt
7b3bf8e2f2
Clarify {{ dhcp_timeout }} & denyinterfaces in /etc/dhcpcd.conf 2019-09-03 00:09:17 -04:00
A Holt
fc0ee6774a
Further clean spacing around denyinterfaces params 2019-09-02 23:57:16 -04:00
A Holt
c7b56f1192
"denyinterfaces eth0" spacing cleaned up 2019-09-02 23:52:52 -04:00
A Holt
542bda46c1
Update dhcpcd.conf.j2 2019-09-02 23:38:07 -04:00
A Holt
53bfa74856
Update dhcpcd.conf.j2 2019-09-02 23:37:04 -04:00
A Holt
fb3849e390
remove quotes from boolean logic in Ansible jinja2 template 2019-09-02 21:50:37 -04:00
A Holt
2a41699daf
wan_try_dhcp_then_static_ip -> wan_can_use_dhcp_ip 2019-09-02 20:12:00 -04:00
A Holt
3fabc9d951
wan_ipv4ll -> wan_link_local 2019-09-02 19:56:04 -04:00
A Holt
41e9e6b03c
wan_ipV4LL -> wan_ipv4ll 2019-09-02 18:13:26 -04:00
A Holt
649f92c2c2
New vars wan_try_dhcp_then_static_ip & dhcp_timeout 2019-09-02 17:54:24 -04:00
A Holt
b6b96afdb3
Update dhcpcd.conf.j2 2019-09-02 15:06:35 -04:00
Jerry Vonau
94a750b031 use timeout 10 in dhcpcd.conf 2019-09-02 12:30:21 -05:00
Jerry Vonau
b28f7e1298 rename variable to wan_ignore_ipV4LL 2019-09-02 12:20:04 -05:00
Jerry Vonau
8d12314a6e use profile/arping for static in dhcpcd.conf 2019-09-02 11:50:38 -05:00
A Holt
b17e268a19
Clarify template debian-auto.j2 for patch_auto 2019-07-26 12:24:48 -04:00
Jerry Vonau
62d35299ef open localhost acl for dansguardian 2019-07-20 23:51:48 -05:00
A Holt
c241cfb3c8
Update dnsmasq.sh.j2 2019-06-29 15:27:20 -04:00
Anish Mangal
71e0cf147a Comment out DNS line in /etc/systemd/network/IIAB-Bridge.network as it is causing race issues #1747 2019-06-25 20:03:29 +05:30
A Holt
5fc4d22057
Merge pull request #1733 from m-anish/azuracast
Initial checkin of AzuraCast role [for online radio stations]
2019-06-23 06:32:28 -04:00
Anish Mangal
afee35b222 Restart dnsmasq whenever iiab-lan-iface comes back up 2019-06-23 06:30:50 +00:00
A Holt
84cfd2b789
Merge branch 'master' into azuracast 2019-06-22 14:27:24 -04:00
Anish Mangal
8a1094e964 Move freepbx from being hosted at pbx.lan to <ip>:8888 2019-06-20 04:30:55 +00:00
A Holt
198445e93e
'static' was missing left of domain_name_servers 2019-06-19 13:02:38 -04:00
Anish Mangal
77bbfa381b Azuracast ports in iiab-gen-iptables 2019-06-19 06:28:47 +00:00
Tim Moody
715be6a62b remove systemctl restart networking 2019-06-15 15:16:56 -04:00
Tim Moody
47f1269563 hostapd fails to start if wifi connected to wan 2019-05-28 14:04:04 -04:00
A Holt
a3d7791f2a
Merge pull request #1617 from mitra42/mitra
Mitra - 'internetarchive' & 'yarn' Ansible playbooks for IIAB
2019-05-25 11:26:05 -04:00
A Holt
f2acf8934b
{{ services_externally_visible }} fails, deprecate it 2019-05-25 06:33:21 -04:00
A Holt
32b849e34f
Merge branch 'master' into mitra 2019-05-25 01:11:24 -04:00
A Holt
be5bbe8e5e
output tweak 2019-05-24 00:03:21 -04:00
A Holt
44c8204f66
Merge pull request #1693 from holta/firewall-usability
iptables firewall: Apply @jvonau's "$lan" != "none" to forwarding not just masquerading
2019-05-23 23:51:54 -04:00
A Holt
a68ae48b4e
Apply @jvonau's "$lan" != "none" to fwd'ing (not just masq'ing) 2019-05-23 23:42:55 -04:00
A Holt
f826c138b8
iptables doc tweak 2019-05-23 19:39:44 -04:00
A Holt
a55c7150e8
enable masquerade only when "$lan" != "none" (typo fixed) 2019-05-23 17:00:27 -04:00
A Holt
7fa7d1d40a
Enable masquerade only when "$lan" != "none" 2019-05-23 11:25:55 -04:00
A Holt
b221473d64
iiab-gen-iptables 15+ core port rules alphabetized 2019-05-21 03:57:04 -04:00
A Holt
f5ed9d6966
iptables $gui_port comment 2019-05-21 03:30:40 -04:00
A Holt
68676ef444
Comment points to iptables docs 2019-05-21 03:09:58 -04:00
A Holt
52fdf8983b
add WAN-side rules even if Appliance (if WAN exists!) 2019-05-21 02:06:47 -04:00
A Holt
20dacbb8fa
2 = ssh + http-or-https (for Admin Console's box.lan/admin too) 2019-05-19 14:02:53 -04:00
A Holt
043e6c8166
Explanation better 2019-05-19 06:49:30 -04:00
A Holt
33c64d2337
Comment aligned w/ local_vars files & default_vars 2019-05-19 06:45:23 -04:00
A Holt
12885ad5f8
How to edit iiab-gen-iptables 2019-05-19 06:30:16 -04:00
A Holt
ec9834f7d7
iiab-gen-iptables uses ports_externally_visible {0...5} 2019-05-19 05:42:58 -04:00
A Holt
e2c8b5cde6
Comments/spacing readability 2019-05-18 18:13:39 -04:00
Tim Moody
3d4ba01669 open samba ports 2019-05-15 10:01:38 -04:00
Mitra Ardron
c99045b3ff Merge branch 'master' into mitra 2019-05-06 08:52:53 +10:00
A Holt
bd6d454b64
"optional: true" eliminates 2+ min stall during boot of Ubuntu 19.04 (#1586) 2019-05-04 03:14:49 -04:00
Mitra Ardron
1a34c04faf internetarchive - create directory; fix typo in iiab-gen-iptables 2019-04-23 16:45:37 +10:00
Mitra Ardron
6bd2575f51 Rename distweb to internetarchive 2019-04-23 10:59:57 +10:00
Mitra Ardron
c90dbfd9e1
Update iiab-gen-iptables
Looks like you called it archorg_port in some places and distweb_port in others (yaml file) - bringing this file into line.
2019-04-22 19:00:26 +10:00
George Hunt
8c1188f1d3 ansible smoke test ok, server does not run --- missing wrtc 2019-03-28 22:22:03 +00:00
A Holt
8c257a2926
Merge pull request #1526 from holta/iiab-hotspot-off-keep-dnsmasq-running
iiab-hotspot-on & iiab-hotspot-off should keep dnsmasq running
2019-02-26 14:15:23 -05:00
A Holt
b5d5e27079
Update iiab-hotspot-on 2019-02-26 14:11:49 -05:00
A Holt
7ea0ba84da
dnsmasq needs to always be running 2019-02-26 14:03:02 -05:00
A Holt
4f564ed670
Merge pull request #1453 from holta/iiab-network-dup-routes-fix
Change iiab.j2 to rpi.j2 to fix iiab-network dup route failings?
2019-02-26 13:34:06 -05:00
Anish Mangal
1cf55bdb70 Open PBX ports on WAN when pbx_enabled is true 2019-02-10 15:19:35 +00:00
A Holt
744e5328d1
Merge pull request #211 from tim-moody/minetest-rpi
sync from tim-moody:minetest-rpi
2019-02-07 19:06:02 -05:00
A Holt
b9b7261e81
Rename iiab.j2 to iiab.j2.deprecated 2019-02-07 11:02:06 -05:00
Anish Mangal
35c5ed3740
Update netplan.j2 2019-02-07 00:23:26 +05:30
Tim Moody
35ab675f2d minetest add port and include in 9 addons 2019-02-06 12:00:01 -05:00
A Holt
e4a1e13b06
open calibreweb_port (8083) requested by @m-anish 2019-01-31 14:35:11 -05:00
Anish Mangal
b78db708d3 Add nodered, mqtt ports to iptables-generator script 2019-01-15 13:43:39 +00:00
georgejhunt
7f9957aa55
0.3 patch1 (#1377)
* expand zim_versions_idx to include menuItem name, mediaCount, articleCount, size

* create a stub menuItem if none exists

* remember to change consumer of zim_version_idx in iiab-admin

* comment out some debugging prints

* do not change the name of a variable in iiab.ini

* consistent variable names for *_enabled

* start work on menus for enabled iiab roles

* changes to display cups in home menu

* remove reference to admin console which may not be installed

* print error message

* dict.get errors

* handle undefined menuItem"

* handle undefined menuItem again

* some work on logos

* break out the zim_versions_idx routines for use by update_menus in admin-console

* remove old menuDef creation code

* new variable names for zim_versions_idx

* missing the tags data in zim_versions_idx

* un-break-apart iiab-make-kiwix-lib.py

* return an empty string

* make size human_readable

* getting console and iiab to work together on menus

* add the new zim_date field to zim_versions_idx

* get the latest into repo

* found lost code iiab-make-kiwix-lib.py

* Create Lokole admin user during setup

* Add requested content to lokole readme
Per iiab/iiab#1293

* Update default password

* Add Lokole-IIAB user manual

* Update default_vars.yml

* Update local_vars_min.yml

* Update local_vars_min.yml

* Update local_vars_medium.yml

* Update local_vars_min.yml

* Update default_vars.yml

* Update local_vars_big.yml

* Update local_vars_medium.yml

* Update default_vars.yml

* Update default_vars.yml

* Update local_vars_min.yml

* Update local_vars_medium.yml

* Update local_vars_big.yml

* Update default_vars.yml

* Update default_vars.yml

* Update local_vars_big.yml

* Update local_vars_medium.yml

* Update local_vars_min.yml

* Update default_vars.yml

* Update local_vars_big.yml

* Update local_vars_medium.yml

* Update local_vars_min.yml

* Change admin username to uppercase

* Revert "Lokole: change admin to Admin per IIAB app norms"

* Update main.yml

* Update README.rst

* Update capture-wsgi.py

* Update main.yml

* Update main.yml

* Update default_vars.yml

* Update local_vars_big.yml

* Update local_vars_medium.yml

* Update local_vars_min.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update default_vars.yml

* Update local_vars_big.yml

* Update local_vars_medium.yml

* Update local_vars_min.yml

* Address TODOs in Lokole documentation

See https://github.com/ascoderu/opwen-webapp/issues/81

* Update main.yml

* Update local_vars_big.yml

* Update local_vars_medium.yml

* Update local_vars_big.yml

* Update local_vars_min.yml

* Update default_vars.yml

* expand zim_versions_idx to include menuItem name, mediaCount, articleCount, size

* create a stub menuItem if none exists

* remember to change consumer of zim_version_idx in iiab-admin

* comment out some debugging prints

* do not change the name of a variable in iiab.ini

* consistent variable names for *_enabled

* start work on menus for enabled iiab roles

* changes to display cups in home menu

* remove reference to admin console which may not be installed

* print error message

* dict.get errors

* handle undefined menuItem"

* handle undefined menuItem again

* some work on logos

* break out the zim_versions_idx routines for use by update_menus in admin-console

* remove old menuDef creation code

* new variable names for zim_versions_idx

* missing the tags data in zim_versions_idx

* un-break-apart iiab-make-kiwix-lib.py

* return an empty string

* make size human_readable

* getting console and iiab to work together on menus

* add the new zim_date field to zim_versions_idx

* get the latest into repo

* found lost code iiab-make-kiwix-lib.py
2019-01-10 14:26:47 -08:00
A Holt
fbe268569d
Merge pull request #1349 from holta/hotspot-on-off-commands
Update iiab-hotspot-on & -off commands from dhcpd to dnsmasq
2019-01-02 01:08:33 -05:00
A Holt
bb402fe24b
Update iiab-hotspot-off 2019-01-02 01:05:06 -05:00
A Holt
ac569245c5
Update iiab-hotspot-on 2019-01-02 01:04:41 -05:00
Jerry Vonau
4c93054d45 using supplied 01-netcfg.yaml as example
note the use of yes in place of true for dhcp4
2018-12-29 13:16:59 -06:00
Jerry Vonau
d6690b2537 lets not use netplan for bridges 2018-12-15 00:32:33 -06:00
Jerry Vonau
7cade0c052 boot time speed up 2018-12-15 00:32:33 -06:00
Jerry Vonau
69e36e9fc1 clean-up 2018-12-15 00:32:33 -06:00
A Holt
80f6902828 Update roles/network/templates/network/dnsmasq.service.u18
Co-Authored-By: jvonau <jvonau3@gmail.com>
2018-12-15 00:32:33 -06:00
Jerry Vonau
3167f8133a #1320 fix for U-18 dnsmasq 2018-12-15 00:32:33 -06:00
Jerry Vonau
343d00848f split out netplan2 2018-12-15 00:32:33 -06:00
George Hunt
1c32208d7b transition to using apache2 for wsgi 2018-12-05 21:03:12 +00:00
A Holt
73f9f7c3a0
Rename iiab-dnsmasq to dnsmasq-iiab 2018-12-03 02:19:31 -05:00
A Holt
04f4e48b1c
Rename roles/network/templates/iiab to roles/network/templates/network/iiab-dnsmasq 2018-12-03 02:18:44 -05:00
A Holt
a4a0d23a87
Create iiab 2018-12-03 02:15:29 -05:00
georgejhunt
84da40c40d
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-17 20:09:40 -08:00
root
b5efe25edb /etc/iiab/iiab.ini -> {{ iiab_ini_file }} 2018-10-15 07:01:09 -04:00
root
b973906dc3 iiab_env_file -> {{ iiab_env_file }} or "{{ iiab_env_file }}" 2018-10-15 06:41:58 -04:00
A Holt
a73c638181
Update iiab-gen-iptables 2018-10-03 14:47:21 -04:00
A Holt
e713a0705b
Update iiab-uncatch 2018-10-03 14:42:17 -04:00
A Holt
e6650b1313
Update iiab-catch 2018-10-03 14:41:20 -04:00
George Hunt
ac6c854646 change name of service, and test 2018-10-03 16:47:22 +00:00