Commit Graph

846 Commits

Author SHA1 Message Date
Matthias Schiffer ac48e63c4a gluon-autoupdater: no need to provide a default config just to delete it in the initial script 2014-01-20 00:06:55 +01:00
Nils Schneider 6d0234a813 gluon-autoupdater: typo corrected 2014-01-19 23:19:55 +01:00
Nils Schneider 858f9d7c9a Merge pull request #7 from FreifunkBremen/master
gluon-autoupdater: get random number from /dev/urandom
2014-01-19 13:40:13 -08:00
Jan-Philipp Litza 5cad7dba41 gluon-autoupdater: get random number from urandom
The approach with awk's rand() wasn't really random between across
devices: When srand() was called without arguments, time() was used as
seed, which of course is the same on all devices when the script is
called via cron at HH:00:00.

This patch instead uses /dev/urandom as source of random (we don't need
cryptographically strong random numbers, so urandom is just fine) but
still uses awk for the comparison as busybox's ash cannot deal with
floats in $(())
2014-01-19 22:36:49 +01:00
Matthias Schiffer e85aeabbb6 gluon-alfred: add chosen gateway and load average 2014-01-19 21:44:26 +01:00
Matthias Schiffer f54ffafb1b gluon-alfred: run every minute
The run frequency and exact time affect the alfred announce interval, so we can
just run it every minute to supply alfred with the most up-to-date data.
2014-01-18 21:56:05 +01:00
Matthias Schiffer 47866fc6eb gluon-mesh-batman-adv: set gateway mode to client 2014-01-18 19:44:02 +01:00
Nils Schneider 8a66201813 Merge pull request #2 from FreifunkBremen/autoupdater-patches
gluon-autoupdater: use awk to split manifest
2014-01-17 08:10:44 -08:00
Jan-Philipp Litza 1a00f672fe autoupdater: Use awk instead of grep+head+tail to split manifest 2014-01-17 16:09:34 +01:00
Matthias Schiffer 249ce3982f gluon-mesh-batman-adv: set bat0 MAC address to primary address 2014-01-16 23:57:42 +01:00
Jan-Philipp Litza 7197eb09dc alfred: add more traffic statistics
+ mgmt and forward counters
+ packet in addition to byte counters for everything
2014-01-16 23:47:41 +01:00
Jan-Philipp Litza 7cca730ce4 alfred: Add --no-sleep option to send immediately 2014-01-16 23:46:54 +01:00
Jan-Philipp Litza 238994e1e2 alfred: clean up delay code 2014-01-16 22:42:02 +01:00
Jan-Philipp Litza 8217d666ee alfred: add random node-specific delay before sending 2014-01-16 22:36:09 +01:00
Jan-Philipp Litza 7538125a82 alfred: make traffic counters absolute
After a lenghty discussion, we settled on absolute vs. relative values.
Main reasons:

* stateless implementation on node possible
* convertable to relative values by differentiaion on receiver
* missed transmissions only decrease granularity, whereas relative
  values would introduce wrong numbers on integration if values are
  missed
2014-01-16 22:34:57 +01:00
Jan-Philipp Litza 10f419deef alfred: add statistics (uptime+traffic) 2014-01-16 16:50:25 +01:00
Matthias Schiffer bd69f55a81 gluon-mesh-vpn-fastd: enable secure handshakes 2014-01-14 19:37:15 +01:00
Matthias Schiffer 86b72c2042 gluon-radvd: don't run as root 2014-01-14 19:34:07 +01:00
Matthias Schiffer 5b6988a512 fastd: fix creation of PID file as non-root user, add secure_handshakes to example config 2014-01-14 19:33:43 +01:00
Matthias Schiffer 9675535afb gluon-mesh-vpn-fastd: don't run as root 2014-01-14 18:46:17 +01:00
Matthias Schiffer cfa49b30c0 gluon-core: add function to add users 2014-01-14 18:19:51 +01:00
Matthias Schiffer f7cb80e7f8 Add firewall rules
gluon-mesh-batman-adv should not be used without firewall to prevent forwarding
of packets from the mesh to the wan interface.

For some reason, the firewall package won't work at all without
kmod-ipt-nathelper.
2014-01-14 01:50:59 +01:00
Matthias Schiffer 7c56102c4d gluon-config-mode: use different document root 2014-01-13 20:17:29 +01:00
Matthias Schiffer ebf4a7e8a2 Remove initscript enable/disable hacks
Better configure these properly.
2014-01-13 18:29:00 +01:00
Matthias Schiffer 138bba1222 gluon-mesh-batman-adv: disable client interface in dnsmasq 2014-01-13 18:02:45 +01:00
Nils Schneider 3e99152716 Merge pull request #4 from FreifunkBremen/master
alfred: added more information to send, reformatted location
2014-01-13 08:30:12 -08:00
Jan-Philipp Litza e38a0c9f11 alfred: name -> hostname 2014-01-13 17:11:41 +01:00
Jan-Philipp Litza f756a71de9 alfred: improved readability 2014-01-13 17:09:15 +01:00
Jan-Philipp Litza 0cfb32ce95 alfred: split up firmware info, include fastd version+status 2014-01-13 17:06:47 +01:00
Jan-Philipp Litza 9648152ef9 alfred: added more information to send, reformatted location
location is object with latitude and longitude
added:
* firmware
* autoupdater status
* hardware model
* primary mac address
* mesh IPv6 addresses
2014-01-13 16:10:03 +01:00
Nils Schneider 137a311e1e gluon-autoupdater: strip trailing - from model 2014-01-13 12:45:55 +01:00
Matthias Schiffer f3fec005e9 gluon-mesh-vpn-fastd: enable no_rebroadcast on the VPN interface 2014-01-13 01:03:08 +01:00
Matthias Schiffer 40ea8d9880 Clean up gluon-alfred
* Merge gluon-alfred-ffmap into gluon-alfred
* Use gluon-crond instead of alfred's "facter" mechanism based on the broken busybox crond
2014-01-12 22:37:28 +01:00
Jan-Philipp Litza b9ac954915 added gluon-alfred and gluon-alfred-ffmap 2014-01-12 22:06:50 +01:00
Matthias Schiffer 2f9b06e825 gluon-autoupdater: use the new get_model function 2014-01-12 21:40:19 +01:00
Matthias Schiffer 37c0716b9b gluon-core: add sh file to get model name etc. 2014-01-12 21:33:44 +01:00
Nils Schneider 877e1acd83 gluon-autoupdater: improve manifest.sample
Makes manifest.sample use the model instead of the board name as that is
what the script actually expects. Also, a sample signature is added.
2014-01-12 21:18:27 +01:00
Nils Schneider d101e2d6af gluon-autoupdater: remove dead code
Recently the autoupdater contained a case statement to distinguish
between TP-Link WDR3600 and TP-Link WDR4300. This was left over from
previous development versions of autoupdater that relied on the board
name instead of the model. It is thus no longer needed and be removed
safely.
2014-01-12 21:18:27 +01:00
Matthias Schiffer 10d163697b gluon-config-mode: don't depend on haveged
Now that haveged starts before the config mode, there is no need to explicity
depend on it; instead it is just used when specified in the site configuration.
2014-01-12 00:50:43 +01:00
Matthias Schiffer 35494393a8 gluon-core: fixup WAN interface MAC address setting 2014-01-11 21:31:28 +01:00
Matthias Schiffer ec862435d7 gluon-core: remove left over 'EOF' from config script 2014-01-11 20:34:58 +01:00
Matthias Schiffer 54d3ce94d3 gluon-ebtables-filter-multicast: correct interface name 2014-01-11 19:27:06 +01:00
Matthias Schiffer 5edc68e7c7 Don't accept router advertisements by default 2014-01-11 17:43:35 +01:00
Matthias Schiffer 616fef804d Add gluon-radvd package 2014-01-11 16:05:17 +01:00
Matthias Schiffer 1318cf0600 next-node: rename config sections 2014-01-11 14:23:27 +01:00
Matthias Schiffer fcc9b2dbd4 next-node: remove unused include 2014-01-11 14:11:42 +01:00
Matthias Schiffer b939096129 Disable IPv6 forwarding on br-client
Disabling forwarding prevents the node from reacting to the Subnet-Router
anycast address.
2014-01-11 14:01:23 +01:00
Matthias Schiffer 4efe5575fe Reimplement next-node configuration based on the new netifd version 2014-01-10 22:34:26 +01:00
Matthias Schiffer 4d8d989980 Add ebtables filters from the legacy firmware 2014-01-10 21:49:18 +01:00
Matthias Schiffer bb3fd05d1a Allow telnet login in config mode again 2014-01-09 10:06:36 +01:00