summaryrefslogtreecommitdiff
path: root/files/common/etc/fsm
AgeCommit message (Collapse)Author
2012-03-30adapt splash and robinson redirection to new webifJan Huwald
2012-03-06add start_ip & end_ip to mesh dhcp configJan Huwald
Otherwise the DHCP server allways serves X.X.0.2 - X.X.1.0 (via 2603713eb66680ccdb03e7409a5f2ec152534849)
2011-12-20remove all hardcoded references to FFJ IP range, use /etc/config/cloud insteadKatze Miau
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.
2011-12-20reintegrate splashKatze Miau
- 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
2011-12-19add fake name resolution to robinson state, add /etc/firewall.use, use cloud ↵Katze Miau
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
2011-12-11fsm inetable: change httpd instances in queen/ghost/robinson statesKatze Miau
- 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
2011-12-11fsm inetable: add uhttpd state helpers, enable service httpd at bootKatze Miau
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.
2011-12-11fsm inetable: sync mesh iface w/ uci, use batctl gw off, reduce redundancyKatze Miau
- 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
2011-12-09fix fsm inetable trans/queen.enterKatze Miau
2011-12-09add FSM inetableKatze Miau
- implemented according to documentation - almost no tests so far
2011-12-06add FSM updateKatze Miau
FSM to handle firmware update process in a synchronized all-or-nothing manner. See doc/overview.org for details.
contact: Jan Huwald // Impressum