Freifunk: Unterschied zwischen den Versionen

Aus Shea Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
(Änderung 244 von Suelmann (Diskussion) rückgängig gemacht.)
Markierung: Rückgängigmachung
 
(16 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 5: Zeile 5:
* [https://freifunk-muensterland.de/wiki/doku.php?id=intern:start Internes Wiki]
* [https://freifunk-muensterland.de/wiki/doku.php?id=intern:start Internes Wiki]
* [https://github.com/FreiFunkMuenster GitHub]
* [https://github.com/FreiFunkMuenster GitHub]
== Firmware signieren ==
<pre><nowiki>
cd ~/Freifunk/manifest-ffms
git pull
./sign.sh ../firmware-secret site-ffms 191 stable
</nowiki></pre>


== Administration ==
== Administration ==
Zeile 15: Zeile 25:
** <code><nowiki>ssh root@parad0x.gw.freifunk-muenster.de</nowiki></code>
** <code><nowiki>ssh root@parad0x.gw.freifunk-muenster.de</nowiki></code>
* Des-Gateways: 5.9.86.144 und 5.9.86.145
* Des-Gateways: 5.9.86.144 und 5.9.86.145
* Ansible-Host: <code><nowiki>ssh -A root@ffms-ansible.yadn.de</nowiki></code>
* Ansible-Host: <code><nowiki>ssh root@ffhost01.yadn.de -p 222</nowiki></code>
* Map-Merger: ssh root@2a01:4f8:162:10d2:5:23:d0:0f
* Map-Merger: <code><nowiki>ssh root@2a01:4f8:162:10d2:5:23:d0:0f</nowiki></code> http://ffms-map.fungur.eu/map/
* Service-VM: <code><nowiki>ssh root@89.163.231.228</nowiki></code> http://89.163.231.228/map/
* Legacy-Servcie-VM: <code><nowiki>ssh root@217.79.181.126 -p 2210</nowiki></code>
* Firmware-Server: <code><nowiki>ssh root@firmware.freifunk-muensterland.org -p 223</nowiki></code>
 
== Hosts ==
erzeugt durch <code><nowiki>cat /data/src/ffm/ansible-ffms/hosts | sed -e 's/ansible_ssh_host=/ssh root@/' -e 's/ansible_ssh_port=/-p /'</nowiki></code>
 
<pre><nowiki>
# Allgemeine Infrastruktur-Server
[common]
buildserver ssh root@217.79.181.126 -p 2215
monitoring  ssh root@178.62.2.100
services-legacy ssh root@217.79.181.126 -p 2210
webserver  ssh root@89.163.231.227
 
# Service-VM für Zentrale Dienste (Karte, Statistik) 
[services]
services    ssh root@89.163.231.228
 
# Backbone Server
[backbone]
c1024    ssh root@176.9.88.123
fanlin  ssh root@89.163.221.125
parad0x  ssh root@5.9.67.189
 
# Supernode Server
[supernodes]
sn-fanlin-1  ssh root@85.14.245.16
sn-fanlin-2  ssh root@213.202.222.143
fussel        ssh root@37.120.168.53
sn-parad0x-1  ssh root@5.9.166.66
sense        ssh root@176.221.46.161
sn-sense-4    ssh root@134.119.42.10
sn-descilla-1 ssh root@5.9.86.154
# sn-descilla-2 ssh root@5.9.86.145
sn-kgbvax-2  ssh root@136.243.99.72
sn-kgbvax-3  ssh root@136.243.99.49
 
[domaene-01]
#remue-01 ssh root@148.251.208.170
greyworm-01    ssh root@89.163.247.45
sense-02 ssh root@134.119.20.233
 
[domaene-02]
greyworm-02    ssh root@89.163.247.46
sense-03 ssh root@134.119.36.210
 
[domaene-test]
test-des1 ssh root@5.9.86.144
test-des2 ssh root@5.9.86.145
 
# Sonstige Server
[ffms-arbeitsmittel]
ffms-ansible    ssh root@148.251.208.168
 
[ffms-mapserver]
ffms-map    ssh root@2a01:4f8:162:10d2:5:23:d0:0f
</nowiki></pre>


Tunnel IPs vom Rheinland: https://docs.google.com/document/d/1MymnkVW6Rv_ZSYViGo8od3lO6NHJ_-ircy_lu2_OJso/edit (vieles darin ist aber falsch)


== Sonstiges ==
== Sonstiges ==
Zeile 42: Zeile 109:




== Temp ==
== l2tp_client übersetzen ==
remue-01


<pre><nowiki>
<pre><nowiki>
echo bat0=bat0 >>/run/network/ifstate
ssh root@firmware.freifunk-muensterland.org -p 223
cd /home/gluon/gits/gluon/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-nand/tunneldigger-0.4.5
PATH=$PATH:/home/gluon/gits/gluon/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/
mips-openwrt-linux-uclibc-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -I/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-generic/usr/include/libnl-tiny -I/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-generic/usr/include -DLIBNL_TINY  -I/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-generic/usr/include -I/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-generic/include -I/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include  -c -I. -o l2tp_client.o l2tp_client.c
mips-openwrt-linux-uclibc-gcc -L/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-generic/usr/lib -L/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-generic/lib -L/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib  -o l2tp_client l2tp_client.o asyncns.o -lpthread -lnl-tiny -lrt -lresolv
mips-openwrt-linux-uclibc-strip l2tp_client
</nowiki></pre>


auto bat0
auf dem Router:
iface bat0 inet manual
 
#iface bat0 inet static
<pre><nowiki>
#        address 10.43.8.2
/etc/init.d/tunneldigger stop
#        netmask 255.255.248.0
scp root@144.76.30.226:/home/gluon/gits/gluon/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-nand/tunneldigger-0.4.5/l2tp_client -P 223 /usr/bin/tunneldigger
        pre-up modprobe batman-adv
/etc/init.d/tunneldigger start
        pre-up ip link add bat0 type batadv||:
        post-up ip link set dev bat0 up
        post-up batctl it 10000
        post-up batctl gw server 1024Mbit/1024Mbit
        post-up ip rule add from all fwmark 0x1 table ffnet
        post-up ip rule add iif bat0 table ffnet
        post-up ip rule add iif lo lookup ffnet suppress_prefixlength 0
        post-up ip a a 10.43.8.2 dev bat0
        post-up ip a a 2a03:2260:115:100::2 bat0
        pre-down batctl if del bat0
        pre-down ip addr flush dev bat0
        post-down ip rule del from all fwmark 0x1 table ffnet
        post-down ip rule del iif bat0 table ffnet
        post-down ip rule del iif lo lookup ffnet suppress_prefixlength 0
#      post-down modprobe -r batman-adv
#
#iface bat0 inet6 static
#        address 2a03:2260:115:100::2
#        netmask 64
        post-up ip -6 rule add from all fwmark 0x1 table ffnet
        post-up ip -6 rule add iif bat0 table ffnet
        post-up ip -6 rule add iif lo lookup ffnet suppress_prefixlength 0
        post-down ip -6 rule del from all fwmark 0x1 table ffnet
        post-down ip -6 rule del iif bat0 table ffnet
        post-down ip -6 rule del iif lo lookup ffnet suppress_prefixlength 0
        post-down ip link del $IFACE
</nowiki></pre>
</nowiki></pre>


----
----
[[KategorieWissen]]
[[KategorieWissen]]

Aktuelle Version vom 20. Dezember 2021, 13:56 Uhr

Freifunk

Firmware signieren

cd ~/Freifunk/manifest-ffms
git pull
./sign.sh ../firmware-secret site-ffms 191 stable


Administration

Hosts

erzeugt durch cat /data/src/ffm/ansible-ffms/hosts | sed -e 's/ansible_ssh_host=/ssh root@/' -e 's/ansible_ssh_port=/-p /'

 
# Allgemeine Infrastruktur-Server 
[common]
buildserver ssh root@217.79.181.126 -p 2215
monitoring  ssh root@178.62.2.100
services-legacy ssh root@217.79.181.126 -p 2210
webserver   ssh root@89.163.231.227

# Service-VM für Zentrale Dienste (Karte, Statistik)  
[services]
services    ssh root@89.163.231.228

# Backbone Server 
[backbone]
c1024    ssh root@176.9.88.123
fanlin   ssh root@89.163.221.125 
parad0x  ssh root@5.9.67.189

# Supernode Server 
[supernodes]
sn-fanlin-1   ssh root@85.14.245.16
sn-fanlin-2   ssh root@213.202.222.143
fussel        ssh root@37.120.168.53
sn-parad0x-1  ssh root@5.9.166.66
sense         ssh root@176.221.46.161
sn-sense-4    ssh root@134.119.42.10 
sn-descilla-1 ssh root@5.9.86.154
# sn-descilla-2 ssh root@5.9.86.145
sn-kgbvax-2   ssh root@136.243.99.72
sn-kgbvax-3   ssh root@136.243.99.49

[domaene-01]
#remue-01	ssh root@148.251.208.170
greyworm-01     ssh root@89.163.247.45
sense-02	ssh root@134.119.20.233

[domaene-02]
greyworm-02     ssh root@89.163.247.46
sense-03	ssh root@134.119.36.210 

[domaene-test]
test-des1	ssh root@5.9.86.144
test-des2	ssh root@5.9.86.145

# Sonstige Server
[ffms-arbeitsmittel]
ffms-ansible    ssh root@148.251.208.168

[ffms-mapserver]
ffms-map    ssh root@2a01:4f8:162:10d2:5:23:d0:0f


Sonstiges

Ausgeführte Befehle

git clone https://github.com/FreiFunkMuenster/ffmap-backend
apt install python3-bs4


Knoten umziehen

uci add_list autoupdater.stable.mirror=http://[2a01:4f8:162:10d2:5:23:d0:0f]/site-ffms/stable/sysupgrade
uci del_list autoupdater.stable.mirror=http://firmware.ffms/site-ffms/stable/sysupgrade
uci set autoupdater.stable.good_signatures=0
uci commit
autoupdater


l2tp_client übersetzen

ssh root@firmware.freifunk-muensterland.org -p 223
cd /home/gluon/gits/gluon/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-nand/tunneldigger-0.4.5
PATH=$PATH:/home/gluon/gits/gluon/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/
mips-openwrt-linux-uclibc-gcc -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -I/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-generic/usr/include/libnl-tiny -I/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-generic/usr/include -DLIBNL_TINY  -I/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-generic/usr/include -I/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-generic/include -I/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include   -c -I. -o l2tp_client.o l2tp_client.c
mips-openwrt-linux-uclibc-gcc -L/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-generic/usr/lib -L/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-generic/lib -L/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/gluon/gits/gluon/build/ar71xx-generic/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib  -o l2tp_client l2tp_client.o asyncns.o -lpthread -lnl-tiny -lrt -lresolv
mips-openwrt-linux-uclibc-strip l2tp_client

auf dem Router:

/etc/init.d/tunneldigger stop
scp root@144.76.30.226:/home/gluon/gits/gluon/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2_gluon-ar71xx-nand/tunneldigger-0.4.5/l2tp_client -P 223 /usr/bin/tunneldigger
/etc/init.d/tunneldigger start

KategorieWissen