|
@@ -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
|
+IPFS_PORT=4001
|
51
|
52
|
TRACKER_PORT=6969
|
52
|
53
|
|
53
|
54
|
# see https://stribika.github.io/2015/01/04/secure-secure-shell.html
|
|
@@ -343,6 +344,7 @@ function mesh_batman {
|
343
|
344
|
echo " iptables -A INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
344
|
345
|
echo " iptables -A INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
345
|
346
|
echo " iptables -A INPUT -p tcp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
|
347
|
+ echo " iptables -A INPUT -p tcp --dport $IPFS_PORT -j ACCEPT" >> $batman_script
|
346
|
348
|
echo " iptables -A INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script
|
347
|
349
|
echo " iptables -A INPUT -p tcp --dport 80 -j ACCEPT" >> $batman_script
|
348
|
350
|
echo " iptables -A INPUT -p udp -m udp -j ACCEPT" >> $batman_script
|
|
@@ -388,6 +390,7 @@ function mesh_batman {
|
388
|
390
|
echo " iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
389
|
391
|
echo " iptables -D INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
390
|
392
|
echo " iptables -D INPUT -p tcp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
|
393
|
+ echo " iptables -D INPUT -p tcp --dport $IPFS_PORT -j ACCEPT" >> $batman_script
|
391
|
394
|
echo " iptables -D INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script
|
392
|
395
|
echo " iptables -D INPUT -p tcp --dport 80 -j ACCEPT" >> $batman_script
|
393
|
396
|
echo " iptables -D INPUT -p udp -m udp -j ACCEPT" >> $batman_script
|