Here you can read more about [[http://www.openwrt.org|OpenWrt]] ====== Konfiguration ====== ===== BOOTP, PXE ===== === PXE on different TFTP-server === man muss ganz einfach beim "Network Boot Image" folgenden Sytax nehmen: ",, serveraddress>". Das ganze wird Einfach an die Dnsmasq-option "--dhcp-boot=" durchgegeben. ===== Tunnel und VPN ===== === IPIP-Tunnel === Wir haben 2 Router mit ihren jeweiligen Netzen, die direkt per Ethernet verkabelt sind. Router "R1" hat Netz "lan" (192.168.8.0/24), Router "R2" hat Netz "friend" (10.0.0.0/8). Beide sind verbunden via Netz "transport" (192.168.9.0/24) mit "R1" als 192.168.9.1 und "R2" als 192.168.9.2. == pakete == * ipip (hängt ab von kmod-iptunnel, resolveip) * luci-proto-ipip (optional, wenn LuCI genutzt wird) == UCI-Konfig == Router "R1" # standard-netz config interface 'lan' option proto 'static' option ipaddr '192.168.8.1' option netmask '255.255.255.0' option ifname 'eth1.8' # Netz zwischen den Routern; hier laufen die Daten im IPIP-Tunnel config interface 'transport' option proto 'static' option ifname 'eth1.9' option ipaddr '192.168.9.1' option netmask '255.255.255.0' # defines the IPIP-tunnel-link to node "R2" # "option ipaddr" ist optional config interface 'Friend' option proto 'ipip' option peeraddr '192.168.9.2' option delegate '0' option ipaddr '192.168.9.1' # sagen wir dem Kernel noch, das er das gesamte Netz "Friend" via zuvor definiertem Interface "Friend" findet config route option interface 'Friend' option target '10.0.0.0' option netmask '255.0.0.0' # optinal; assign an address of "friend" to "R1" # to make "R1" act like a direct node in the net "friend" config interface 'Friend_ip' option proto 'static' option ifname '@Friend' option delegate '0' option ipaddr '10.8.0.1' option netmask '255.255.255.255' Router "R2" === N2N-VPN === ein P2P-Mesh VPN * https://www.ntop.org/n2n/ ====== Develop ====== * packaging: https://wiki.openwrt.org/doc/devel/packages * dependencies: https://wiki.openwrt.org/doc/devel/dependencies ===== packaging ===== * Liste der installieten Pakete: opkg --list-installed * Liste der installieten Pakete (ohne versions string): opkg --list-installed | awk '{ print $1 }' ====== DEBUG ====== ===== Luci ===== hier sind ein paar GEdanken zum live-debuggen von Luci-scripten zu finden: * https://forum.openwrt.org/viewtopic.php?pid=210309#p210309 eine der Ansätze ist ein Wrapper zu schreiben (cgi-bin/luci.dbg/) der die StdIO umbiegt und StdErr in eine Datei umleitet und dann seinerseits normal Luci aufruft. #!/bin/sh exec 2>/tmp/debug exec /www/cgi-bin/luci