Age | Commit message (Collapse) | Author |
|
Otherwise the DHCP server allways serves X.X.0.2 - X.X.1.0
(via 2603713eb66680ccdb03e7409a5f2ec152534849)
|
|
|
|
(cherry picked from commit 07a918444ddbd92092a09f53e3cb21e8beed567b)
|
|
(from ff49ff9614058a8940149a3cae0f3206e5c641a7)
|
|
(cherry picked from commit 655ced35fd98c15f3502cfdb972bd61034a604f3)
Signed-off-by: Jan Huwald <jh@sotun.de>
|
|
(cherry picked from commit 4bcb3b1c263c0e2dc56220dc992edf16d0537edc)
Signed-off-by: Jan Huwald <jh@sotun.de>
|
|
(cherry picked from commit 5b3faa278fb321e53d716e3132f28a880339106c)
|
|
|
|
although it is already stale again
|
|
- clean removes buildroot-specific tmp files
- allclean also makes openwrt repos clean (after which a gcc of the
toolchain will take a lot of time)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The symlink is for backward compatbility with backfire. In trunk the
N/ND suffix is ommitted.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
toolbin/merge_config takes a list of basenames and merges them by
applying them from left to right. If the first basename may refer to a
file or a directory; the resulting merge is of the same type.
Usage:
toolbin/merge_config --merge --dst location [--verbose] base base2 ...
For each basename X up to one of three possible files may exist:
$X - copy $X as result of the merge (overwritting any existing $X)
$X.patch - patch an existing $X
$X.delete - delete an existing $X
toolbin/extract_variants decomposes a string like foo/bar-baz/boing-bu
along the dashes into:
foo/bar-baz-boing-bu
foo/bar-baz-boing
foo/bar-baz
foo/bar
It is used to generate all possible sources merge_config should consider.
|
|
Replace the last bits of hardcoded FFJ IP range outside /etc/config -
residing in fsm inetable state transitions - with IP ranges calculated
from /etc/config/cloud.
|
|
Check if the interface is running before trying to ping. This reduces
the execution time of test_connectivity in common non-gateway
deployments.
|
|
- remove nano, ipset from backfire.config
- update the config to newer openwrt svn revision
|
|
- setup router is obsoleted by the autodiscovery of network status
implemented in the previous commits
- test_* is superseded by test_connectivity
|
|
|
|
- add cronjob for splash_sync (every minute for debugging; to be
increased)
- add redirection for unsplashed users in queen.enter, remove it in
queen.leave
- add /etc/splash.sh to centralize functionality used in
/sbin/splash_sync and /www/service/*splash*
- make splash_sync to use a transactional update approach: insert
iptable rules for all splashed MACs into a new chain, then replace
old and new chain; this avoids downtime even if splash_sync is slow
- remove allowed services for splashed users; this is intended to not
move old cruft over to new code; if any of the those services shall
be reenabled, it should happen in /etc/firewall.user
- make /sbin/splash_sync aware of the current state of FSM inetable
(read via /sbin/fsm with optional command line override); this
allows to unconditionally call splash_sync via cron
- add locks to all places where the splash state is touched
- remove multiple escaping/quoting/encoding problems in splash cgi
scripts
- reenable link to the page the user initially demanded in
/www/service/cgi-bin/splash_click
|
|
|
|
|
|
- Replace the URL encding escape character % with _. This allows
passing the encoded value forth and back between our (buggy) server
and (buggy) clients without escaping the escape character.
- add /sbin/urldecode to reverse the encoding
|
|
config
1. When in robinson state the router now resolves all domain names to
an IP in the robinson fake net (as defined in
/etc/config/cloud). All tcp traffic to this network (and the rest
of the internet) is redirected to a local webserver.
2. The ip addresses in robinson state are now generated in the ranges
given in /etc/config/cloud
|
|
|
|
This file is intended to centrally store all information specific to
the local mesh cloud (name of the local freifunk community, used
address ranges, ...) that is
- device independent (e.g. no device names)
- does not fit in another config file (e.g. freifunk community name)
or is subject to change during runtime (e.g. robinson network
address range)
Ultimately it shall be generated during image creation.
|
|
|
|
|
|
No full URL encoding is performed. Only the characters % &?<>"' are
encoded.
|
|
Locking the state file during `fsm get` operations is annoying. And
the returned state may be changed anytime after termination, so the
caller can not rely on it being up to date anyway.
|
|
The next patch will need this to build catch-all DNS for the
robinson state.
|
|
|
|
- update the redirection uhttpd config and www-root to redirect all
incoming request to a url specified by /tmp/redirection_target
- use this to implement robinson and splash redirection during
robinson and queen/ghost states, respectively
- change the service httpd to listen on the public IPv4 address
available on the mesh interface in those states.
Missing is the
- iptable based redirection
- already referenced /sbin/urlencode
|
|
Add function to enable/disable/change the uhttpd uci config state. Use
these functions to start the service httpd, listening on the
link-local IPv6 addresses of br-lan and br-mesh.
|
|
This patch splits the single uhttpd instance into two uhttpd instances
with www root /www/<servicename> for the following purposes:
- service :: self-service / debugging / status.xml
- redirection :: use for splash/robinson redirection
The uhttpd uci config is adapted: by default all instances declared
there are disabled; They shall be enabled by the FSM inetable. To this
end a listen_http directive will be added and the config type will be
changed from 'disabled' to 'uhttpd' by state transition scripts.
|
|
- add mesh_add/del_ipv4 to set/unset IPv4 addresses of mesh iface; the
address is set using ifconfig to avoid ifudown+ifup but also updated
in UCI to maintain a consistent state
- use this function in queen, ghost and robinson state transitions
- use `batctl gw off` in robinson state: this allows to deliever local
DHCP replies while dropping the idea of announcing fake gateways
- ghost.leave reuses queen.leave
|
|
|