Zeile 17: |
Zeile 17: |
| Mode=switch | | Mode=switch |
| Compression=9 | | Compression=9 |
| + | Device=/dev/net/tun |
| DirectOnly=yes | | DirectOnly=yes |
| Forwarding=off | | Forwarding=off |
Zeile 32: |
Zeile 33: |
| | intro=In dieser Tabelle werden unsere Gateways mitsamt den dazugehörigen Tinc-Schlüsseln gelistet | | | intro=In dieser Tabelle werden unsere Gateways mitsamt den dazugehörigen Tinc-Schlüsseln gelistet |
| |}} | | |}} |
− |
| |
− | {{Todo|Diese Startscripte sind schlimme Bash-Wüste (a.k.a. Krepelscheiße). Vereinfachen & Anpassen.}}
| |
| | | |
| == /etc/tinc/ffmz/tinc-up == | | == /etc/tinc/ffmz/tinc-up == |
Zeile 39: |
Zeile 38: |
| | | |
| #!/bin/sh | | #!/bin/sh |
| + | modprobe batman-adv |
| # $INTERFACE should be ffmz | | # $INTERFACE should be ffmz |
| IP="10.37.XX.XX" | | IP="10.37.XX.XX" |
− | ifconfig $INTERFACE inet 0.0.0.0 netmask 255.0.0.0 | + | ifconfig $INTERFACE 0.0.0.0 netmask 255.255.0.0 |
− | echo "> assigned inet adr 0.0.0.0 to $INTERFACE..."
| |
| ifconfig $INTERFACE mtu 1528 | | ifconfig $INTERFACE mtu 1528 |
− | echo "> set MTU of $INTERFACE to 1528..."
| |
| batctl if add $INTERFACE | | batctl if add $INTERFACE |
− | echo "> added $INTERFACE to batctl..."
| + | ifconfig bat0 $IP netmask 255.255.0.0 up |
− | ifconfig bat0 up | |
− | echo "> bat0 up"
| |
− | ifconfig bat0 $IP
| |
− | echo "> assigned inet adr $IP to bat0..."
| |
| ORIGINAL_GATEWAY=`ip route show | grep ^default | cut -d ' ' -f 2-5` | | ORIGINAL_GATEWAY=`ip route show | grep ^default | cut -d ' ' -f 2-5` |
− | ip route add 84.201.31.106 $ORIGINAL_GATEWAY | + | ip route add 89.238.78.70 $ORIGINAL_GATEWAY |
| ip route del default $ORIGINAL_GATEWAY | | ip route del default $ORIGINAL_GATEWAY |
− | ip route add default via 10.37.0.1 | + | ip route add default via 10.37.254.1 |
− | echo "> added routes..."
| |
− | echo "> > > initialization done < < <"
| |
− | | |
| | | |
| == /etc/tinc/ffmz/tinc-down == | | == /etc/tinc/ffmz/tinc-down == |
| | | |
| #!/bin/sh | | #!/bin/sh |
− | batctl if del ffmz | + | batctl if del $INTERFACE |
− | ifconfig ffmz down | + | ifconfig $INTERFACE down |
| ifconfig bat0 down | | ifconfig bat0 down |
| | | |