gluon:extras
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| gluon:extras [2022/06/16 11:17] – Initial Commit MaciejKrüger | gluon:extras [2022/12/29 07:19] (current) – dest_ip MaciejKrüger | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| In / | In / | ||
| - | '''' | ||
| - | * option src ' | + | < |
| - | config | + | option src ' |
| - | + | | |
| - | + | ||
| - | * option name 'SNAT WAN to Mesh' | + | |
| - | '''' | + | |
| + | config redirect ' | ||
| + | option name 'SNAT WAN to Mesh' | ||
| + | option src ' | ||
| + | option src_ip ' | ||
| + | option dest_ip ' | ||
| + | option src_dip ' | ||
| + | option dest ' | ||
| + | option target ' | ||
| + | option proto ' | ||
| + | </ | ||
| Line 33: | Line 39: | ||
| IPv4-Netzwerk: | IPv4-Netzwerk: | ||
| + | |||
| + | |||
| + | |||
| + | ====== Gluon als Funkfeuer Gateway (olsr2) ====== | ||
| + | Der Gluon Router kann auch als gateway für das ipv6/olsr2 Netz konfiguriert werden, d.h. dass fdff: | ||
| + | |||
| + | |||
| + | |||
| + | ===== Setup auf dem Knoten ===== | ||
| + | In / | ||
| + | |||
| + | |||
| + | |||
| + | < | ||
| + | config forwarding ' | ||
| + | option src ' | ||
| + | option dest ' | ||
| + | |||
| + | config redirect ' | ||
| + | option name 'SNAT V6 WAN to Mesh' | ||
| + | option src ' | ||
| + | option src_ip ' | ||
| + | option dest_ip ' | ||
| + | option src_dip ' | ||
| + | option dest ' | ||
| + | option target ' | ||
| + | option proto ' | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Setup auf dem Router ===== | ||
| + | |||
| + | |||
| + | ==== FritzBox ==== | ||
| + | Unter Netzwerk > Netzwerkeinstellungen > IPv6-Einstellungen | ||
| + | |||
| + | Unique Local Addresses: Auf " | ||
| + | |||
| + | Vom Gerät jetzt die ULA holen ("ip a s br-wan | grep fd" via ssh) | ||
| + | |||
| + | Unter Netzwerk > Netzwerkeinstellungen bei IPv6-Routen neue Route hinzufügen | ||
| + | |||
| + | IPv6-Netzwerk: | ||
| + | |||
| + | |||
| + | |||
| + | ====== Gluon Upgrade/ | ||
| + | Verwendung | ||
| + | |||
| + | |||
| + | |||
| + | < | ||
| + | </ | ||
| + | z.B. für einen vollen re-flash und reset eines lokalen knotens | ||
| + | |||
| + | |||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | < | ||
| + | |||
| + | set -euo pipefail | ||
| + | |||
| + | target=" | ||
| + | type=" | ||
| + | channel=" | ||
| + | shift 3 | ||
| + | |||
| + | TMP="/ | ||
| + | |||
| + | i() { | ||
| + | tput bold | ||
| + | echo "[*] $*" | ||
| + | tput init | ||
| + | } | ||
| + | |||
| + | mkdir -p " | ||
| + | cd " | ||
| + | |||
| + | tput setaf 8 && i " | ||
| + | |||
| + | IMG=$(curl -s " | ||
| + | |||
| + | if [ ! -e " | ||
| + | i "dl $IMG" | ||
| + | curl -# " | ||
| + | touch " | ||
| + | else | ||
| + | tput setaf 8 && i " | ||
| + | fi | ||
| + | |||
| + | i "copy $IMG to $target..." | ||
| + | scp -O -o StrictHostKeyChecking=no " | ||
| + | |||
| + | tput setaf 1 && i " | ||
| + | ssh " | ||
| + | </ | ||
| + | |||
| + | |||
| + | ====== Gluon Massen-Konfiguration ====== | ||
| + | Verwendung: | ||
| + | |||
| + | |||
| + | * entweder | ||
| + | |||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| + | * oder | ||
| + | |||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | < | ||
| + | |||
| + | # usage: < | ||
| + | # or: <manman location> | ||
| + | |||
| + | set -euo pipefail | ||
| + | |||
| + | TMP=$(mktemp) | ||
| + | |||
| + | run() { | ||
| + | echo " | ||
| + | ssh " | ||
| + | } | ||
| + | |||
| + | clean() { | ||
| + | rm " | ||
| + | } | ||
| + | |||
| + | trap clean EXIT | ||
| + | |||
| + | run gluon-info | ||
| + | |||
| + | if [ $# -gt 1 ]; then | ||
| + | run manman-sync enable " | ||
| + | run pretty-hostname " | ||
| + | else | ||
| + | run pretty-hostname " | ||
| + | fi | ||
| + | |||
| + | run uci set gluon-setup-mode.@setup_mode[0].configured=1 | ||
| + | run uci set gluon.core.reconfigure=1 | ||
| + | run uci commit | ||
| + | run reboot | ||
| + | </ | ||
| + | |||
gluon/extras.1655378245.txt · Last modified: by MaciejKrüger
