<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.netz39.de/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Netz39 - freifunk:gateway</title>
        <description></description>
        <link>https://wiki.netz39.de/</link>
        <lastBuildDate>Wed, 13 May 2026 02:25:12 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://wiki.netz39.de/_media/logo.png</url>
            <title>Netz39</title>
            <link>https://wiki.netz39.de/</link>
        </image>
        <item>
            <title>example</title>
            <link>https://wiki.netz39.de/freifunk:gateway:example?rev=1613158855&amp;do=diff</link>
            <description>&lt;pre&gt;
@@ -1 +1,170 @@
+ ====== Gateway Configuration ======
+ 
+ ===== Operating System =====
+ 
+   * Debian Wheezy
+ 
+ ===== APT =====
+ 
+ ==== /etc/apt/sources.list ====
+ 
+ &amp;lt;code&amp;gt;
+ deb http://repo.universe-factory.net/debian/ sid main
+ deb http://debian.draic.info/ wheezy main
+ deb-src http://debian.draic.info/ wheezy main
+ &amp;lt;/code&amp;gt;
+ 
+ ==== Installed packages ====
+ 
+   * OpenVPN
+ 
+ ===== OpenVPN =====
+ 
+ ==== IPredator ====
+ Checked on 09.06.2020 
+ 
+ /etc/openvpn/ipredator.conf:
+ 
+ &amp;lt;code&amp;gt;
+ client
+ dev-type tun
+ dev ipredator
+ proto udp
+ remote pw.openvpn.ipredator.se 1194
+ remote pw.openvpn.ipredator.me 1194
+ remote pw.openvpn.ipredator.es 1194
+ resolv-retry infinite
+ nobind
+ persist-key 
+ persist-tun
+ comp-lzo
+ verb 3
+ remote-cert-tls server
+ auth-user-pass /etc/openvpn/ipredator.auth
+ auth-retry nointeract
+ 
+ ca [inline]
+ 
+ tls-client
+ tls-auth [inline]
+ ns-cert-type server
+ remote-cert-tls server
+ remote-cert-ku 0x00e0 
+ 
+ keepalive 10 30
+ cipher AES-256-CBC
+ tun-mtu 1500
+ passtos
+ replay-window 512 60
+ route-noexec
+ 
+ script-security 2
+ up /etc/openvpn/ipredator-up
+ up-restart /etc/openvpn/ipredator-up
+ 
+ &amp;lt;ca&amp;gt;
+ -----BEGIN CERTIFICATE-----
+ MIIFJzC...
+ -----END CERTIFICATE-----
+ &amp;lt;/ca&amp;gt;
+ 
+ &amp;lt;tls-auth&amp;gt;
+ -----BEGIN OpenVPN Static key V1-----
+ 03f7b2...
+ -----END OpenVPN Static key V1-----
+ &amp;lt;/tls-auth&amp;gt;
+ &amp;lt;/code&amp;gt;
+ /etc/openvpn/ipredator-up:
+ 
+ &amp;lt;code&amp;gt;
+ #!/bin/sh
+ IP=$4
+ BASE=&amp;quot;$(echo $IP | cut -d. -f1-3)&amp;quot;
+ LSV=&amp;quot;$(echo $IP | cut -d. -f4)&amp;quot;
+ if test $LSV -gt 128; then
+     LSV=128
+ else
+     LSV=0
+ fi
+ echo $LSV
+ GW=$BASE.$((LSV+1))
+ SERVER=$BASE.$((LSV+2))
+ 
+ ip route add $SERVER/32 via 217.79.189.1
+ 
+ ip route del 0.0.0.0/1 table 42
+ ip route del 128.0.0.0/1 table 42
+ 
+ ip route add 0.0.0.0/1 via $GW table 42
+ ip route add 128.0.0.0/1 via $GW table 42
+ exit 0
+ &amp;lt;/code&amp;gt;
+ /etc/openvpn/ipredator.auth
+ 
+ &amp;lt;code&amp;gt;
+ &amp;lt;username&amp;gt;
+ &amp;lt;password&amp;gt;
+ &amp;lt;/code&amp;gt;
+ ===== Fastd =====
+ updated 09.06.2020
+ ==== Backbone ====
+ 
+ /etc/fastd/backbone/fastd.conf:
+ 
+ &amp;lt;code&amp;gt;
+ log to syslog level info;
+ mtu 1426;
+ method &amp;quot;salsa2012+umac&amp;quot;;
+ method &amp;quot;salsa2012+gmac&amp;quot;;
+ include &amp;quot;secret.conf&amp;quot;;
+ user &amp;quot;fastd&amp;quot;;
+ bind any:9999;
+ include peers from &amp;quot;peers&amp;quot;;
+ #on up &amp;quot;
+ #dnsmasq -i bat0
+ #&amp;quot;;
+ interface &amp;quot;mesh-vpn-backbone&amp;quot;;
+ on up &amp;quot;
+ ip link set address be:98:1f:07:ff:52 up dev $INTERFACE
+ batctl if add $INTERFACE
+ &amp;quot;;
+ 
+ &amp;lt;/code&amp;gt;
+ /etc/fastd/backbone/secret.conf
+ 
+ &amp;lt;code&amp;gt;
+ secret &amp;quot;dsfhjjds...&amp;quot;;
+ &amp;lt;/code&amp;gt;
+ 
+ ==== FFMD ====
+ /etc/fastd/magdeburg/fastd.conf:
+ 
+ &amp;lt;code&amp;gt;
+ log to syslog level info;
+ mtu 1312;
+ method &amp;quot;salsa2012+umac&amp;quot;;
+ method &amp;quot;salsa2012+gmac&amp;quot;;
+ include &amp;quot;secret.conf&amp;quot;;
+ user &amp;quot;fastd&amp;quot;;
+ bind any:10001;
+ include peers from &amp;quot;peers&amp;quot;;
+ #on up &amp;quot;
+ #dnsmasq -i bat0
+ #&amp;quot;;
+ interface &amp;quot;mesh-vpn&amp;quot;;
+ on up &amp;quot;
+ ip link set address be:98:1f:07:ff:b3 up dev $INTERFACE
+ batctl if add $INTERFACE
+ &amp;quot;;
+ on verify async &amp;quot;true&amp;quot;;
+ 
+ &amp;lt;/code&amp;gt;
+ 
+ /etc/fastd/magdeburg/secret.conf
+ 
+ ===== Changelog =====
+ Updated 
+ 
+ - 2020-06-09 20:24 von kwasir
+ 
  

&lt;/pre&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 12 Feb 2021 19:40:55 +0000</pubDate>
        </item>
        <item>
            <title>konfiguration</title>
            <link>https://wiki.netz39.de/freifunk:gateway:konfiguration?rev=1591727750&amp;do=diff</link>
            <description>&lt;pre&gt;
@@ -1 +1,103 @@
+ ====== Konfiguration ======
  
+ ===== Dienste =====
+ 
+ ^Name                                                                           ^Zweck                         ^ffmd-repo                                                      ^Ort                                                  ^inst. Version   ^autostart  ^sonstiges                                                                                                              ^
+ |[[https://github.com/tcatm/alfred|alfred]]                                     |mesh-metadaten                |[[http://github.com/freifunkmd/alfred|alfred]]                 |                                                     |                |           |[[https://github.com/tcatm/alfred|alfred]]                                                                             |mesh-metadaten  |[[http://github.com/freifunkmd/alfred|alfred]]  |
+ |[[https://github.com/tcatm/alfred-json|alfred-json]]                           |json aus alfred erstellen     |[[https://github.com/FreifunkMD/alfred-json|alfred-json]]      |                                                     |0.2-5-gad51202  |
+ |[[http://www.open-mesh.org/projects/batman-adv/wiki/Doc-overview|batman-adv]]  |mesh-protokoll                |-                                                              |                                                     |
+ |[[https://projects.universe-factory.net/projects/fastd/wiki|fastd]]            |mesh-protokoll                |-                                                              |                                                     |v17             |
+ |[[https://github.com/freifunkhamburg/ffmap-backend|ffmap-backend]]             |backend zu Map                |[[https://github.com/FreifunkMD/ffmap-backend|ffmap-backend]]  |/opt/ffmap-backend/                                  |
+ |[[https://github.com/freifunkhamburg/ffmap-d3|ffmap-d3]]                       |map                           |[[https://github.com/FreifunkMD/ffmap-d3|ffmap-d3]]            |/var/www/map/                                        |                |           |anpassen der neuen Version (grüner/blauer Punkt) \\ /var/www/map/config.json Variable: current-firmware  |
+ |[[https://github.com/FreifunkMD/statistik-panel|ffmap-stat-panel]]             |Statistik für Panel im Space  |-                                                              |/opt/ffmap-stat-panel \\ /var/www/map  |
+ |[[http://github.com/baldo/ffffng/|ffffng]]                                     |Registerformular              |[[https://github.com/FreifunkMD/ffffng|ffffng]]                |/home/fastdform/opt/                                 |
+ |[[https://openvpn.net/|openvpn]]  
+ 
+ 
+ ===== Reihenfolge der Dienste =====
+ 
+   * siehe https://pad.n39.eu/p/freifunk-gateway-startup bzw. https://pad.n39.eu/p/freifunk21
+ 
+   * openvpn (erzeugt device mullvad)
+ 
+   * fastd (erzeugt device ffmd-mesh-vpn, erzeugt nach startup bat0
+   * &amp;lt;del&amp;gt;tinc (erzeugt device icvpn)&amp;lt;/del&amp;gt; 
+   * bird
+   * bird6
+   * isc-dhcp-server ( (DHCP nur auf GW1 )
+   * unbounds
+   * &amp;lt;del&amp;gt;radvd&amp;lt;/del&amp;gt;
+   * alfred (alfred nur auf GW1 )
+   * &amp;lt;del&amp;gt;batadv-vis&amp;lt;/del&amp;gt;
+ geprüft am 09.06.2020
+ ===== Start der notwendigen Dienste nach reboot =====
+ 
+   * die Datei start-gateway.sh ausführen (als root)
+ &amp;lt;code&amp;gt;
+   #!/bin/sh   
+   service openvpn start   
+   sleep 5 
+   service fastd start 
+   sleep 5
+   #service tinc start 
+   #sleep 5
+   #service bird start
+   #service bird6 start
+   service isc-dhcp-server start   
+   service pdns start
+   service unbound start
+   service radvd start 
+   service alfred start
+   service batadv-vis start
+ &amp;lt;/code&amp;gt;
+ 
+   * [[freifunk:gateway:example|example Konfiguration]]
+ 
+ ===== WEB1: prometheus (Statistik-Datenbank) =====
+ 
+   * http:%%//%%37.120.170.49:9090/graph -&amp;gt; Oberfläche
+   * config: /etc/prometheus/prometheus.yml
+ &amp;lt;code&amp;gt;
+ global:
+   scrape_interval: 1m
+   scrape_timeout: 10s
+   evaluation_interval: 1m
+ scrape_configs:
+ - job_name: prometheus
+   honor_timestamps: true
+   scrape_interval: 1m
+   scrape_timeout: 10s
+   metrics_path: /metrics
+   scheme: http
+   static_configs:
+   - targets:
+     - localhost:9090
+ - job_name: hopglass
+   honor_timestamps: true
+   scrape_interval: 1m
+   scrape_timeout: 10s
+   metrics_path: /metrics
+   scheme: http
+   static_configs:
+   - targets:
+     - web1.md.freifunk.net:4000
+ 
+ &amp;lt;/code&amp;gt;
+ 
+   * systemctl start/stop prometheus-systemd
+   * liegt unter: /etc/systemd/system/prometheus-systemd.service
+ &amp;lt;code&amp;gt;
+   [Unit]
+   Description=Prometheus service
+   After=network.target
+ 
+   [Service]
+   User=prometheus
+   Group=nogroup
+   ExecStart=/usr/sbin/prometheus  -config.file /etc/prometheus/prometheus.yml -storage.local.path /var/lib/prometheus/data -web.console.templates /etc/prometheus/consoles -web.console.libraries /etc/prometheus/console_libraries -storage.local.retention 760h0m0s
+   ExecReload=/bin/kill -HUP $MAINPID
+   Restart=always
+ 
+   [Install]
+   WantedBy=multi-user.target
+ &amp;lt;/code&amp;gt;  

&lt;/pre&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 09 Jun 2020 18:35:50 +0000</pubDate>
        </item>
    </channel>
</rss>
