From fd7e0e7f489743309d6c8aaa79a351e42b804990 Mon Sep 17 00:00:00 2001 From: Leonard Penzer <leonard@penzer.de> Date: Mon, 22 Sep 2014 21:48:36 +0200 Subject: [PATCH] initial version used on first builds - needs gluon master branch --- site.conf | 143 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ site.mk | 44 +++++++++++++++++ 2 files changed, 187 insertions(+) create mode 100644 site.conf create mode 100644 site.mk diff --git a/site.conf b/site.conf new file mode 100644 index 0000000..c4f8162 --- /dev/null +++ b/site.conf @@ -0,0 +1,143 @@ +{ + hostname_prefix = 's', + site_name = 'Freifunk Stuttgart', + site_code = 'ffs', + + prefix4 = '172.21.24.128/25', + prefix6 = 'fd21:b4dc:4b1e::/64', + + timezone = 'CET-1CEST,M3.5.0,M10.5.0/3', -- Europe/Berlin + ntp_servers = { + '172.21.24.129', 'fd21:b4dc:4b1e::a38:1', -- gluongw + }, + opkg_repo = 'http://172.21.24.129/gluon/stable/%S/packages', + regdom = 'DE', + + wifi24 = { + ssid = 'stuttgart.freifunk.net', + channel = 1, + htmode = 'HT20', + mesh_ssid = '02:04:08:16:32:64', + mesh_bssid = '02:04:08:16:32:64', + mesh_mcast_rate = 12000, + }, + wifi5 = { + ssid = 'stuttgart.freifunk.net', + channel = 44, + htmode = 'HT40+', + mesh_ssid = '02:04:08:16:32:64', + mesh_bssid = '02:04:08:16:32:64', + mesh_mcast_rate = 12000, + }, + + next_node = { + ip4 = '172.21.24.254', + ip6 = 'fd21:b4dc:4b1e::1', + mac = '02:00:0a:25:00:01', -- http://freifunk-stuttgart.de/mac.html + }, + + fastd_mesh_vpn = { + methods = {'salsa2012+gmac'}, + mtu = 1406, + enabled = true, + backbone = { + limit = 2, + peers = { + gluongw = { + key = 'd7b89d42b629bd5d419139b4c395e7b47ed7417112d3fcd232ba38137daa58e6', + remotes = {'"gluongw.selfhosted.de" port 10037'}, + }, + }, + }, + }, + + autoupdater = { + branch = 'stable', + branches = { + stable = { + name = 'stable', + mirrors = { + 'http://[fd21:b4dc:4b1e::a38:1]/gluon/stable/sysupgrade', -- gluongw + 'http://172.21.24.129/gluon/stable/sysupgrade', -- gluongw + }, + good_signatures = 1, + pubkeys = { + 'eb609ccaa68d681aadbc4d00a4b0870f6cb1559ac9d280f590beee595ac4bc39', -- leonard + }, + }, + beta = { + name = 'beta', + mirrors = { + 'http://[fd21:b4dc:4b1e::a38:1]/gluon/beta/sysupgrade', -- gluongw + 'http://172.21.24.129/gluon/beta/sysupgrade', -- gluongw + }, + good_signatures = 1, + pubkeys = { + 'eb609ccaa68d681aadbc4d00a4b0870f6cb1559ac9d280f590beee595ac4bc39', -- leonard + }, + }, + nightly = { + name = 'nightly', + mirrors = { + 'http://[fd21:b4dc:4b1e::a38:1]/gluon/nightly/sysupgrade', -- gluongw + 'http://172.21.24.129/gluon/nightly/sysupgrade', -- gluongw + }, + good_signatures = 1, + pubkeys = { + 'eb609ccaa68d681aadbc4d00a4b0870f6cb1559ac9d280f590beee595ac4bc39', -- leonard + }, + }, + }, + }, + + simple_tc = { + mesh_vpn = { + ifname = 'mesh-vpn', + enabled = false, + limit_egress = 400, + limit_ingress = 6000, + }, + }, + + -- enable BATMAN on WAN interface by default (see gluon-luci-portconfig for webinterface) + mesh_on_wan = false, + + config_mode = { + msg_welcome = [[ +Willkommen zum Einrichtungsassistenten für deinen neuen Freifunk-Knoten. +Fülle das folgende Formular deinen Vorstellung entsprechend aus und sende es ab. +]], + msg_pubkey = [[ +Dies ist der öffentliche Schlüssel deines Freifunk-Knotens. Erst nachdem er auf +den Servern des Stuttgarter Freifunk-Projektes eingetragen wurde +kann sich dein Knoten mit den Mesh-VPNs in Stuttgart verbinden. +Bitte schicke dazu diesen Schlüssel und den Namen deines Knotens (<em><%=hostname%></em>) +an <a href="mailto:leonard@penzer.de?&subject=Neuer%20Freifunk-Knoten%3A%20<%=hostname%>&body=Name%3A%20<%=hostname%>%0D%0AKey%3A%20<%=pubkey%>%0D%0AMAC%3A%20<%=sysconfig.primary_mac%>%0D%0A">leonard@penzer.de</a>. +<small>Ein Klick auf den E-Mail Link müsste™ dein E-Mail Programm +öffnen und alle benötigten Informationen in eine neue Mail einfügen.</small> +]], + msg_reboot = [[ +Dein Knoten startet gerade neu und wird anschließend versuchen, sich mit anderen +Freifunk-Knoten in seiner Nähe zu verbinden. + +<h2>Und was jetzt?</h2> + +Weitere Informationen zur Freifunk-Community findest du auf den Webseiten von +<a href="http://stuttgart.freifunk.net/">Freifunk Stuttgart</a> oder unter <a href="http://www.freifunk.net/">freifunk.net</a>. + +<dl> + <dt>Karte</dt> + <dd>Die Karten sind unter <a href="http://map.freifunk-stuttgart.de/">map.freifunk-stuttgart.de</a> erreichbar.</dd> + + <dt>Next Node</dt> + <dd>Den Router mit dem man momentan verbunden ist, kann man immer unter der sogenannten Next Node Adresse erreichen. Diese ist für jeden Router gleich:</dd> + <dd>• Stuttgart — <a href="http://[fd21:b4dc:4b1e::1]/">fd21:b4dc:4b1e::1</a> – <a href="http://172.21.24.254/">172.21.24.254</a></dd> +</dl> + +Viel Spaß mit deinem Knoten und bei der Erkundung von Freifunk!<br /> + +<small>Hilf uns weitere Anleitungen, Texte, Grafiken, Applikationen, Schaubilder, und ähnliches zu erstellen die wir hier verlinken können, um jedem neuen Freifunker einen guten Start zu ermöglichen</small> + +]], + }, +} diff --git a/site.mk b/site.mk new file mode 100644 index 0000000..e94d3a8 --- /dev/null +++ b/site.mk @@ -0,0 +1,44 @@ +GLUON_SITE_PACKAGES := \ + gluon-mesh-batman-adv-15 \ + gluon-alfred \ + gluon-announced \ + gluon-autoupdater \ + gluon-ebtables-filter-multicast \ + gluon-ebtables-filter-ra-dhcp \ + gluon-config-mode-hostname \ + gluon-config-mode-autoupdater \ + gluon-config-mode-mesh-vpn \ + gluon-config-mode-geo-location \ + gluon-config-mode-contact-info \ + gluon-luci-private-wifi \ + gluon-luci-admin \ + gluon-luci-autoupdater \ + gluon-luci-portconfig \ + gluon-mesh-vpn-fastd \ + gluon-next-node \ + gluon-radvd \ + gluon-status-page \ + iwinfo \ + iptables \ + haveged + +FOO := \ + + +# * opkg_install_cmd: Cannot install package gluon-config-mode-autoupdater. +# * opkg_install_cmd: Cannot install package gluon-config-mode-contact-info. +# * opkg_install_cmd: Cannot install package gluon-config-mode-geo-location. +# * opkg_install_cmd: Cannot install package gluon-config-mode-hostname. +# * opkg_install_cmd: Cannot install package gluon-config-mode-mesh-vpn. +# * opkg_install_cmd: Cannot install package gluon-luci-private-wifi. +# * opkg_install_cmd: Cannot install package gluon-mesh-batman-adv-15. + + + +DEFAULT_GLUON_RELEASE := 0.1+0-$(shell date '+%Y.%m.%d-%H.%M')-g.$(shell git -C $(GLUONDIR) log --pretty=format:'%h' -n 1)-s.$(shell git -C $(GLUONDIR)/site log --pretty=format:'%h' -n 1) + +# Allow overriding the release number from the command line +GLUON_RELEASE ?= $(DEFAULT_GLUON_RELEASE) + +# Default priority for updates. +GLUON_PRIORITY ?= 0.1 -- GitLab