Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| freifunk:meshkit [26.08.2014 21:33] – [config] stephanj | freifunk:meshkit [29.01.2015 00: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 31: | Zeile 33: | ||
| - Forwarding Freifunk / WAN | - Forwarding Freifunk / WAN | ||
| </ | </ | ||
| - | |||
| ===== fastd VPN ===== | ===== fastd VPN ===== | ||
| Zeile 44: | Zeile 45: | ||
| < | < | ||
| # mkdir / | # mkdir / | ||
| - | # echo "key " | + | # echo " |
| - | remote ipv4 " | + | remote ipv4 \" |
| </ | </ | ||
| Zeile 63: | 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/ |
| + | </ | ||
| + | |||
| + | Den **privaten Key** in //secret// eintragen (und entsprechend sicher lokal abspeichern) und den **öffentlichen Key** an [[stephan@freifunk-erfurt.de]] schicken oder im IRC durchgeben. Dieser wird dann in der Server-Config auch als Peer eingetragen. Dann in der letzten Zeile in der IP-Adresse das X durch die Zahl des eindeutigen VPN-Nodes ersetzen, welcher dir dann mitgeteilt wird. | ||
| + | |||
| + | ===== Netzwerk ===== | ||
| + | Die Network-Config wird um ein weiteres Interface erweitert. In die Datei / | ||
| + | < | ||
| + | config interface ' | ||
| + | option ifname ' | ||
| + | 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 ' | ||
| </ | </ | ||
| - | Den **privaten Key** in //secret// eintragen (und entsprechend sicher lokal abspeichern) und den **öffentlichen Key** an [[stephan@freifunk-erfurt.de]] schicken oder im IRC durchgeben. Dieser wird dann in der Server-Config auch als Peer eingetragen. Dann in der letzten Zeile in der IP-Adresse das X durch die Zahl des eindeutigen VPN-Nodes ersetzen, welches dir dann mitgeteilt wird. | + | **Ergänzung:** |
| + | Es muss der Parameter '' | ||