Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
freifunk:meshkit [27.08.2014 00:09] – [Network] stephanj | freifunk:meshkit [29.01.2015 01:45] (aktuell) – [Post-Install-Schritte] stephanj | ||
---|---|---|---|
Zeile 18: | Zeile 18: | ||
| | ||
| | ||
- | - Install fastd from openwork | + | - Install fastd from openwrt |
- | opkg install http:// | + | # opkg update |
+ | # opkg install http:// | ||
+ | # / | ||
- Install kmod-ipip | - Install kmod-ipip | ||
- | opkg install kmod-ipip | + | # opkg install kmod-ipip |
- Config fastd | - Config fastd | ||
- Config OLSRd | - Config OLSRd | ||
Zeile 43: | Zeile 45: | ||
< | < | ||
# mkdir / | # mkdir / | ||
- | # echo "key " | + | # echo " |
- | remote ipv4 " | + | remote ipv4 \" |
</ | </ | ||
Zeile 62: | Zeile 64: | ||
option secure_handshakes 1 | option secure_handshakes 1 | ||
option secret ' | option secret ' | ||
- | option up 'ip link set up dev $1;ip a a 10.99.254.X/ | + | option up 'ip link set up dev $1;ip a a 10.99.254.X/ |
</ | </ | ||
Zeile 74: | Zeile 76: | ||
option proto ' | option proto ' | ||
</ | </ | ||
+ | |||
+ | ===== OLSR ===== | ||
+ | Die vollständige OLSRd Config sieht so aus: | ||
+ | < | ||
+ | config olsrd ' | ||
+ | option IpVersion ' | ||
+ | option FIBMetric ' | ||
+ | option LinkQualityLevel ' | ||
+ | option LinkQualityAlgorithm ' | ||
+ | option OlsrPort ' | ||
+ | option Willingness ' | ||
+ | option NatThreshold ' | ||
+ | option RtTable ' | ||
+ | option RtTableDefault ' | ||
+ | |||
+ | config LoadPlugin ' | ||
+ | option library ' | ||
+ | |||
+ | config LoadPlugin ' | ||
+ | option library ' | ||
+ | option latlon_file '/ | ||
+ | option hosts_file '/ | ||
+ | option sighup_pid_file '/ | ||
+ | option services_file '/ | ||
+ | option suffix ' | ||
+ | |||
+ | config LoadPlugin ' | ||
+ | option library ' | ||
+ | option accept ' | ||
+ | |||
+ | config InterfaceDefaults ' | ||
+ | option Ip4Broadcast ' | ||
+ | option Mode ' | ||
+ | |||
+ | config LoadPlugin ' | ||
+ | option library ' | ||
+ | option ignore ' | ||
+ | |||
+ | config LoadPlugin ' | ||
+ | option library ' | ||
+ | option file '/ | ||
+ | option interval ' | ||
+ | |||
+ | config LoadPlugin ' | ||
+ | option library ' | ||
+ | |||
+ | config Interface ' | ||
+ | option interface ' | ||
+ | option Mode ' | ||
+ | |||
+ | config Interface | ||
+ | option interface ' | ||
+ | option Mode ' | ||
+ | </ | ||
+ | |||
+ | ===== Firewall ===== | ||
+ | |||
+ | Die Firewall-Config (iptables) sollte zwei Ergänzungen in der Datei / | ||
+ | * (Optional) SSH-Port von außen (in der Regel das LAN) durch den WAN-Port des Routers öffnen: | ||
+ | < | ||
+ | config redirect | ||
+ | option enabled ' | ||
+ | option target ' | ||
+ | option src ' | ||
+ | option dest ' | ||
+ | option proto ' | ||
+ | option src_dport ' | ||
+ | option dest_ip ' | ||
+ | option dest_port ' | ||
+ | option name ' | ||
+ | </ | ||
+ | * Das VPN in die Firewall-Regeln aufnehmen und mit WAN und Freifunk verbinden: | ||
+ | < | ||
+ | config zone | ||
+ | option input ' | ||
+ | option output ' | ||
+ | option name ' | ||
+ | option forward ' | ||
+ | option network ' | ||
+ | option masq ' | ||
+ | option mtu_fix ' | ||
+ | |||
+ | config forwarding | ||
+ | option dest ' | ||
+ | option src ' | ||
+ | |||
+ | config forwarding | ||
+ | option dest ' | ||
+ | option src ' | ||
+ | |||
+ | config forwarding | ||
+ | option dest ' | ||
+ | option src ' | ||
+ | |||
+ | config forwarding | ||
+ | option dest ' | ||
+ | option src ' | ||
+ | </ | ||
+ | |||
+ | **Ergänzung: | ||
+ | Es muss der Parameter '' |