gluon:extras
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| gluon:extras [2022/07/14 20:24] – add flash script MaciejKrüger | gluon:extras [2022/12/29 07:19] (current) – dest_ip MaciejKrüger | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| option src ' | option src ' | ||
| option src_ip ' | option src_ip ' | ||
| + | option dest_ip ' | ||
| option src_dip ' | option src_dip ' | ||
| option dest ' | option dest ' | ||
| Line 38: | 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: | ||
| Line 78: | Line 122: | ||
| tput setaf 8 && i " | tput setaf 8 && i " | ||
| - | IMG=$(curl -s " | + | IMG=$(curl -s " |
| if [ ! -e " | if [ ! -e " | ||
| i "dl $IMG" | i "dl $IMG" | ||
| Line 92: | Line 137: | ||
| tput setaf 1 && i " | tput setaf 1 && i " | ||
| ssh " | 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.1657830250.txt · Last modified: by MaciejKrüger
