|
@@ -48,6 +48,7 @@ SSH_KEX="curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256"
|
48
|
48
|
SSH_HOST_KEY_ALGORITHMS="ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-ed25519,ssh-rsa"
|
49
|
49
|
|
50
|
50
|
ZERONET_PORT=15441
|
|
51
|
+TRACKER_PORT=51413
|
51
|
52
|
|
52
|
53
|
# see https://stribika.github.io/2015/01/04/secure-secure-shell.html
|
53
|
54
|
function ssh_remove_small_moduli {
|
|
@@ -143,7 +144,7 @@ function mesh_babel {
|
143
|
144
|
echo ' return' >> $babel_script
|
144
|
145
|
echo ' fi' >> $batman_script
|
145
|
146
|
echo ' # install avahi' >> $babel_script
|
146
|
|
- echo ' apt-get -y install avahi-utils avahi-autoipd avahi-daemon avahi-dnsconfd' >> $babel_script
|
|
147
|
+ echo ' apt-get -y install avahi-utils avahi-autoipd avahi-daemon avahi-dnsconfd transmission-daemon' >> $babel_script
|
147
|
148
|
echo ' sed -i "s|#host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $babel_script
|
148
|
149
|
echo ' sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $babel_script
|
149
|
150
|
echo ' if [ -f /bin/systemctl ]; then' >> $babel_script
|
|
@@ -228,7 +229,7 @@ function mesh_batman {
|
228
|
229
|
echo '' >> $batman_script
|
229
|
230
|
echo 'if [[ $1 == "start" ]]; then' >> $batman_script
|
230
|
231
|
echo ' # install avahi' >> $batman_script
|
231
|
|
- echo ' apt-get -y install avahi-utils avahi-autoipd avahi-daemon avahi-dnsconfd' >> $batman_script
|
|
232
|
+ echo ' apt-get -y install avahi-utils avahi-autoipd avahi-daemon avahi-dnsconfd transmission-daemon' >> $batman_script
|
232
|
233
|
echo ' sed -i "s|#host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
233
|
234
|
echo ' sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
234
|
235
|
echo ' sed -i "s|use-ipv4=.*|use-ipv4=yes|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
|
@@ -339,6 +340,7 @@ function mesh_batman {
|
339
|
340
|
echo ' iptables -A INPUT -p udp --dport 5354 -j ACCEPT' >> $batman_script
|
340
|
341
|
echo " iptables -A INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
341
|
342
|
echo " iptables -A INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
|
343
|
+ echo " iptables -A INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
342
|
344
|
echo '' >> $batman_script
|
343
|
345
|
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
344
|
346
|
echo ' systemctl restart avahi-daemon' >> $batman_script
|
|
@@ -379,6 +381,7 @@ function mesh_batman {
|
379
|
381
|
echo ' iptables -D INPUT -p udp --dport 5354 -j ACCEPT' >> $batman_script
|
380
|
382
|
echo " iptables -D INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
381
|
383
|
echo " iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
|
384
|
+ echo " iptables -D INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
382
|
385
|
echo '' >> $batman_script
|
383
|
386
|
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
384
|
387
|
echo ' systemctl restart network-manager' >> $batman_script
|