mirror of
https://github.com/ffrgb/site-ffrgb.git
synced 2024-12-29 01:11:51 +01:00
Updates f Gluon v2015.1
This commit is contained in:
parent
d85e6baae1
commit
6dd6316fdb
16
Makefile
16
Makefile
@ -1,9 +1,14 @@
|
|||||||
GLUON_BUILD_DIR := gluon-build
|
GLUON_BUILD_DIR := gluon-build
|
||||||
GLUON_GIT_URL := git://github.com/freifunk-gluon/gluon.git
|
GLUON_GIT_URL := https://github.com/freifunk-gluon/gluon.git
|
||||||
GLUON_GIT_REF := v2014.4
|
GLUON_GIT_REF := v2015.1
|
||||||
|
|
||||||
SECRET_KEY_FILE ?= ${HOME}/.gluon-secret-key
|
SECRET_KEY_FILE ?= ${HOME}/.gluon-secret-key
|
||||||
|
|
||||||
|
GLUON_TARGETS ?= \
|
||||||
|
ar71xx-generic \
|
||||||
|
ar71xx-nand \
|
||||||
|
x86-kvm_guest
|
||||||
|
|
||||||
GLUON_RELEASE := $(shell git describe --tags 2>/dev/null)
|
GLUON_RELEASE := $(shell git describe --tags 2>/dev/null)
|
||||||
ifneq (,$(shell git describe --exact-match --tags 2>/dev/null))
|
ifneq (,$(shell git describe --exact-match --tags 2>/dev/null))
|
||||||
GLUON_BRANCH := stable
|
GLUON_BRANCH := stable
|
||||||
@ -18,9 +23,7 @@ GLUON_MAKE := ${MAKE} -j ${JOBS} -C ${GLUON_BUILD_DIR} \
|
|||||||
GLUON_BRANCH=${GLUON_BRANCH}
|
GLUON_BRANCH=${GLUON_BRANCH}
|
||||||
|
|
||||||
all: info
|
all: info
|
||||||
${MAKE} gluon-clean
|
|
||||||
${MAKE} manifest
|
${MAKE} manifest
|
||||||
${MAKE} gluon-clean
|
|
||||||
|
|
||||||
info:
|
info:
|
||||||
@echo
|
@echo
|
||||||
@ -30,7 +33,10 @@ info:
|
|||||||
@echo
|
@echo
|
||||||
|
|
||||||
build: gluon-prepare
|
build: gluon-prepare
|
||||||
${GLUON_MAKE}
|
for target in ${GLUON_TARGETS}; do \
|
||||||
|
echo ""Building target $$target""; \
|
||||||
|
${GLUON_MAKE} GLUON_TARGET="$$target"; \
|
||||||
|
done
|
||||||
|
|
||||||
manifest: build
|
manifest: build
|
||||||
${GLUON_MAKE} manifest
|
${GLUON_MAKE} manifest
|
||||||
|
169
site.conf
169
site.conf
@ -1,64 +1,16 @@
|
|||||||
--[[
|
|
||||||
gluon site.conf ffrgb
|
|
||||||
|
|
||||||
This file contains the Munich freifunk site.conf which was adopted from the original freifunk suite used in Luebeck.
|
|
||||||
There are comments added to most switches to explain the usage of gluon.
|
|
||||||
|
|
||||||
This is lua code now, not perl anymore.
|
|
||||||
|
|
||||||
Happy compiling!
|
|
||||||
]]
|
|
||||||
|
|
||||||
{
|
{
|
||||||
--[[ Community settings
|
|
||||||
hostname_prefix: Nodename prefix
|
|
||||||
freifunk-abcdef123456 (hex-part is generated from node's MAC address)
|
|
||||||
site_name: Name of your community
|
|
||||||
site_code: Shortcode of your community
|
|
||||||
]]
|
|
||||||
|
|
||||||
hostname_prefix = 'freifunk',
|
hostname_prefix = 'freifunk',
|
||||||
site_name = 'Freifunk Regensburg',
|
site_name = 'Freifunk Regensburg',
|
||||||
site_code = 'ffrgb-bat15',
|
site_code = 'ffrgb-bat15',
|
||||||
opkg_repo = 'http://openwrt.draic.info/barrier_breaker/14.07/%S/packages',
|
opkg_repo = 'http://openwrt.draic.info/barrier_breaker/14.07/%S/packages',
|
||||||
|
|
||||||
|
|
||||||
--[[ General network settings
|
|
||||||
prefix4: IPv4 range of your community
|
|
||||||
prefix6: IPv6 range of your community
|
|
||||||
is also required for radvd ]]
|
|
||||||
|
|
||||||
prefix4 = '10.90.0.0/16',
|
prefix4 = '10.90.0.0/16',
|
||||||
prefix6 = 'fdef:f00f:1337:cafe/64',
|
prefix6 = 'fdef:f00f:1337:cafe/64',
|
||||||
|
|
||||||
|
|
||||||
--[[ NTP settings
|
|
||||||
Synchronize the time of the nodes
|
|
||||||
timezone: Timezone of your community
|
|
||||||
http://wiki.openwrt.org/doc/uci/system#time.zones
|
|
||||||
ntp_servers: List of NTP-Servers to query. You can use any public and/or your private NTP-Servers of your community.
|
|
||||||
http://www.pool.ntp.org/zone/de ]]
|
|
||||||
|
|
||||||
timezone = 'CET-1CEST,M3.5.0,M10.5.0/3',
|
timezone = 'CET-1CEST,M3.5.0,M10.5.0/3',
|
||||||
ntp_servers = {'1.ntp.services.ffrgb','2.ntp.services.ffrgb'},
|
ntp_servers = {'1.ntp.services.ffrgb','2.ntp.services.ffrgb'},
|
||||||
|
|
||||||
--[[ Wireless settings
|
mesh_on_wan = true,
|
||||||
regdom: IEEE 802.11 Regulatory Domain
|
|
||||||
http://en.wikipedia.org/wiki/IEEE_802.11#Regulatory_domains_and_legal_compliance
|
|
||||||
wifi24: Wifi settings for 2.4 GHz frequency devices
|
|
||||||
wifi5: Wifi settings for 5 GHz frequency devices
|
|
||||||
sub
|
|
||||||
ssid: Wifi name shown to the user (We recommend %site_code%.freifunk.net)
|
|
||||||
channel: Wifi channel to use
|
|
||||||
htmode: Specifies the channel width in 802.11n and 802.11ac mode, possible values are:
|
|
||||||
HT20 (single 20MHz channel),
|
|
||||||
HT40- (2x 20MHz channels, primary/control channel is upper, secondary channel is below)
|
|
||||||
HT40+ (2x 20MHz channels, primary/control channel is lower, secondary channel is above).
|
|
||||||
VHT20 / VHT40 / VHT80 / VHT160 (channel width in 802.11ac, extra channels are picked according to the specification)
|
|
||||||
http://wiki.openwrt.org/doc/uci/wireless#common.options (-> htmode)
|
|
||||||
mesh_ssid: SSID of the mesh-interface, an ugly SSID prevent clients from connecting (We recommend not to change this)
|
|
||||||
mesh_bssid: BSSID of the mesh-interface
|
|
||||||
mesh_mcast_rate: multicast rate of the mesh-interface ]]
|
|
||||||
|
|
||||||
regdom = 'DE',
|
regdom = 'DE',
|
||||||
|
|
||||||
@ -67,7 +19,7 @@
|
|||||||
channel = 1,
|
channel = 1,
|
||||||
htmode = 'HT40+',
|
htmode = 'HT40+',
|
||||||
mesh_ssid = 'mesh.ffrgb',
|
mesh_ssid = 'mesh.ffrgb',
|
||||||
mesh_bssid = '02:0E:8E:1E:61:17', --[[ from https://muenchen.freifunk.net/wiki/Knoten#B.A.T.M.A.N._Advanced ]]
|
mesh_bssid = '02:0E:8E:1E:61:17',
|
||||||
mesh_mcast_rate = 12000,
|
mesh_mcast_rate = 12000,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -80,16 +32,6 @@
|
|||||||
mesh_mcast_rate = 12000,
|
mesh_mcast_rate = 12000,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
--[[ Next-Node
|
|
||||||
next_node: Howto reach the node you are currently connected to
|
|
||||||
The node will always be reachable at that address, and it's the same on all nodes. Because next_node packets are redirected within the node itself, there will be no conflicts.
|
|
||||||
sub
|
|
||||||
ip4: IPv4 Address to use
|
|
||||||
ip6: IPv6 Address to use
|
|
||||||
mac: MAC Address to use
|
|
||||||
(TODO: What is the purpose of this MAC-Address here?) ]]
|
|
||||||
|
|
||||||
next_node = {
|
next_node = {
|
||||||
ip4 = '10.90.0.1',
|
ip4 = '10.90.0.1',
|
||||||
ip6 = 'fdef:f00f:1337:cafe::1',
|
ip6 = 'fdef:f00f:1337:cafe::1',
|
||||||
@ -97,51 +39,29 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
--[[ Gateway settings
|
|
||||||
fastd_mesh_vpn: fastd vpn settings
|
|
||||||
https://projects.universe-factory.net/projects/fastd/wiki/User_manual
|
|
||||||
sub
|
|
||||||
methods: encryption algorithms to use
|
|
||||||
https://projects.universe-factory.net/projects/fastd/wiki/Methods
|
|
||||||
When multiple method statements are given, the first one has the highest preference.
|
|
||||||
mtu: package size
|
|
||||||
backbone: fastd vpn gateways of your community
|
|
||||||
sub
|
|
||||||
limit: Number of gateways each node connects to
|
|
||||||
On startup, each node tries to connect to every gateway, and then chooses the number of 'limit' fastest gateways it could reach
|
|
||||||
peers: Gateways
|
|
||||||
sub sub
|
|
||||||
key: public fastd key of your gateway
|
|
||||||
https://github.com/tcatm/ecdsautils
|
|
||||||
remotes: List of fastd configuration strings to connect to your gateway server ]]
|
|
||||||
|
|
||||||
|
|
||||||
fastd_mesh_vpn = {
|
fastd_mesh_vpn = {
|
||||||
methods = {'salsa2012+umac','salsa2012+gmac'},
|
methods = {'salsa2012+umac'},
|
||||||
mtu = 1426,
|
mtu = 1426,
|
||||||
|
groups = {
|
||||||
backbone = {
|
backbone = {
|
||||||
limit = 2,
|
limit = 2,
|
||||||
peers = {
|
peers = {
|
||||||
vpn_gw01 = { --[[ VPN Server von Sven (hetzner) ]]
|
gw01 = { --[[ sven ]]
|
||||||
key = '58c2ac30c4693e8fde59c3794ac4c09748ec6a969e9688c42e144f5382e16e66',
|
key = '58c2ac30c4693e8fde59c3794ac4c09748ec6a969e9688c42e144f5382e16e66',
|
||||||
remotes = {'ipv4 "78.47.168.108" port 10000'},
|
remotes = {
|
||||||
|
'ipv4 "78.47.168.108" port 10000',
|
||||||
},
|
},
|
||||||
vpn_gw04 = { --[[ VPN Server von mephisto ]]
|
},
|
||||||
|
gw04 = { --[[ mephisto ]]
|
||||||
key = '40ebfaf04da006d9150d3d8adeaab0dfa62ca645b416403537cb009bbf2125b5',
|
key = '40ebfaf04da006d9150d3d8adeaab0dfa62ca645b416403537cb009bbf2125b5',
|
||||||
remotes = {'ipv4 "213.166.225.5" port 10000'},
|
remotes = {
|
||||||
|
'ipv4 "213.166.225.5" port 10000',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
--[[ gluon autoupdater section
|
|
||||||
a how-to can be found here: http://gluon.readthedocs.org/en/latest/features/autoupdater.html
|
|
||||||
enable: 0, 1
|
|
||||||
branch: stable, beta, experimental
|
|
||||||
name: name of the branch
|
|
||||||
mirrors: comma separated ipv6 based mirror-servers to access the firmware image
|
|
||||||
good_signatures: number of at leased good signatures signed by the authors of the firmware
|
|
||||||
pubkeys: public keys of the authors of the firmware image ]]
|
|
||||||
|
|
||||||
autoupdater = {
|
autoupdater = {
|
||||||
enabled = 1,
|
enabled = 1,
|
||||||
@ -152,11 +72,11 @@ autoupdater = {
|
|||||||
mirrors = {
|
mirrors = {
|
||||||
'http://[fdef:f00f:1337:cafe::11]/firmware/stable/sysupgrade/',
|
'http://[fdef:f00f:1337:cafe::11]/firmware/stable/sysupgrade/',
|
||||||
},
|
},
|
||||||
probability = 0.08,
|
probability = 0.1,
|
||||||
good_signatures = 2,
|
good_signatures = 1,
|
||||||
pubkeys = {
|
pubkeys = {
|
||||||
'4d6b1a8e2ecfdb59469c38c3659916dd6046cd5270ddd31c3319b21c508eaa07', -- mephisto
|
'4d6b1a8e2ecfdb59469c38c3659916dd6046cd5270ddd31c3319b21c508eaa07', -- mephisto
|
||||||
'130ff01b6c8df0349c977a5c9539775209493bc771b713e5b3e58cc1d7c4145a', -- duff
|
'130ff01b6c8df0349c977a5c9539775209493bc771b713e5b3e58cc1d7c4145a', -- sven
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
experimental = {
|
experimental = {
|
||||||
@ -164,72 +84,23 @@ autoupdater = {
|
|||||||
mirrors = {
|
mirrors = {
|
||||||
'http://[fdef:f00f:1337:cafe::11]/firmware/experimental/sysupgrade/',
|
'http://[fdef:f00f:1337:cafe::11]/firmware/experimental/sysupgrade/',
|
||||||
},
|
},
|
||||||
probability = 0.1,
|
probability = 0.5,
|
||||||
good_signatures = 1,
|
good_signatures = 1,
|
||||||
pubkeys = {
|
pubkeys = {
|
||||||
'4d6b1a8e2ecfdb59469c38c3659916dd6046cd5270ddd31c3319b21c508eaa07', -- mephisto
|
'4d6b1a8e2ecfdb59469c38c3659916dd6046cd5270ddd31c3319b21c508eaa07', -- mephisto
|
||||||
|
'130ff01b6c8df0349c977a5c9539775209493bc771b713e5b3e58cc1d7c4145a', -- sven
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--[[ Simple TC settings to limit the bandwidth of the vpn-uplink
|
|
||||||
mesh_vpn:
|
|
||||||
sub
|
|
||||||
ifname: name of the interface/bridge
|
|
||||||
enabled: default-value
|
|
||||||
limit_egress: default-value
|
|
||||||
limit_ingress: default-value ]]
|
|
||||||
|
|
||||||
simple_tc = {
|
simple_tc = {
|
||||||
mesh_vpn = {
|
mesh_vpn = {
|
||||||
ifname = 'mesh-vpn',
|
ifname = 'mesh-vpn',
|
||||||
enabled = false,
|
enabled = false,
|
||||||
limit_egress = 200,
|
limit_egress = 1200,
|
||||||
limit_ingress = 3000,
|
limit_ingress = 12000,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
--[[ Config Mode settings
|
|
||||||
Text shown on local website on node while in config mode (after initial flashing or after a long press and hold on the primary button and reboot). You can use html here.
|
|
||||||
msg_welcome: Welcome message shown at startup
|
|
||||||
msg_pubkey: Instructions for the user how your community handles the key exchange
|
|
||||||
only shown if VPN setting is selected
|
|
||||||
msg_reboot: Message shown when configuration is finished while the node is rebooting.
|
|
||||||
|
|
||||||
Variables
|
|
||||||
Within the text given here you can use variables which are
|
|
||||||
replaced when the respective website is delivered to the user.
|
|
||||||
Variables must be used in the format <%=NAME%>. See msg_pubkey for an example.
|
|
||||||
hostname: hostname of the node
|
|
||||||
pubkey: fastd public key of the node
|
|
||||||
sysconfig.primary_mac the primary mac of the node, also found printed beneath the device
|
|
||||||
... other sysconfig.* variables: config_ifname, lan_ifname, wan_ifname ]]
|
|
||||||
|
|
||||||
|
|
||||||
config_mode = {
|
|
||||||
msg_welcome = [[
|
|
||||||
Willkommen zum Einrichtungsassistenten für deinen neuen Regensburger
|
|
||||||
Freifunk-Knoten. Fülle das folgende Formular deinen Vorstellungen
|
|
||||||
entsprechend aus und sende es ab.
|
|
||||||
]],
|
|
||||||
msg_pubkey = [[
|
|
||||||
]],
|
|
||||||
msg_reboot = [[
|
|
||||||
<p>
|
|
||||||
Dein Knoten startet gerade neu und wird anschließend versuchen,
|
|
||||||
sich mit anderen Freifunk-Knoten in seiner Nähe zu
|
|
||||||
verbinden. Weitere Informationen zur
|
|
||||||
Regensburger Freifunk-Community findest du auf
|
|
||||||
<a href="http://regensburg.freifunk.net/">unserer Webseite</a>.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Viel Spaß mit deinem Knoten und der Erkundung von Freifunk!
|
|
||||||
</p>
|
|
||||||
]],
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
-- vim: set ft=lua:ts=2:sw=2:et
|
-- vim: set ft=lua:ts=2:sw=2:et
|
||||||
|
10
site.mk
10
site.mk
@ -3,6 +3,7 @@ GLUON_SITE_PACKAGES := \
|
|||||||
gluon-alfred \
|
gluon-alfred \
|
||||||
gluon-announced \
|
gluon-announced \
|
||||||
gluon-autoupdater \
|
gluon-autoupdater \
|
||||||
|
gluon-config-mode-core \
|
||||||
gluon-config-mode-autoupdater \
|
gluon-config-mode-autoupdater \
|
||||||
gluon-config-mode-hostname \
|
gluon-config-mode-hostname \
|
||||||
gluon-config-mode-mesh-vpn \
|
gluon-config-mode-mesh-vpn \
|
||||||
@ -13,14 +14,18 @@ GLUON_SITE_PACKAGES := \
|
|||||||
gluon-luci-admin \
|
gluon-luci-admin \
|
||||||
gluon-luci-autoupdater \
|
gluon-luci-autoupdater \
|
||||||
gluon-luci-portconfig \
|
gluon-luci-portconfig \
|
||||||
|
gluon-luci-wifi-config \
|
||||||
gluon-luci-private-wifi \
|
gluon-luci-private-wifi \
|
||||||
gluon-next-node \
|
gluon-next-node \
|
||||||
gluon-mesh-vpn-fastd \
|
gluon-mesh-vpn-fastd \
|
||||||
gluon-radvd \
|
gluon-radvd \
|
||||||
|
gluon-setup-mode \
|
||||||
gluon-status-page \
|
gluon-status-page \
|
||||||
iwinfo \
|
iwinfo \
|
||||||
iptables \
|
iptables \
|
||||||
haveged
|
haveged \
|
||||||
|
gluon-ebtables-filter-arp-ffmuc \
|
||||||
|
gluon-ebtables-filter-multicast-ffmuc
|
||||||
|
|
||||||
|
|
||||||
DEFAULT_GLUON_RELEASE := snapshot~$(shell date '+%Y%m%d')
|
DEFAULT_GLUON_RELEASE := snapshot~$(shell date '+%Y%m%d')
|
||||||
@ -29,3 +34,6 @@ DEFAULT_GLUON_RELEASE := snapshot~$(shell date '+%Y%m%d')
|
|||||||
GLUON_RELEASE ?= $(DEFAULT_GLUON_RELEASE)
|
GLUON_RELEASE ?= $(DEFAULT_GLUON_RELEASE)
|
||||||
|
|
||||||
GLUON_PRIORITY ?= 0
|
GLUON_PRIORITY ?= 0
|
||||||
|
|
||||||
|
# Languages to include
|
||||||
|
GLUON_LANGS ?= en de
|
||||||
|
Loading…
Reference in New Issue
Block a user