From 5dd057635be0b2f7016a5f8341d600db93cc34e1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 30 Sep 2015 10:47:37 +0100 Subject: [PATCH] Open ipfs port on mesh --- src/freedombone | 2 ++ src/freedombone-client | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/freedombone b/src/freedombone index a14c0b73..a0199ce3 100755 --- a/src/freedombone +++ b/src/freedombone @@ -2250,6 +2250,7 @@ function mesh_batman_bridge { echo ' iptables -A INPUT -p udp --dport 5354 -j ACCEPT' >> $batman_script echo " iptables -A INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script echo " iptables -A INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script + echo " iptables -A INPUT -p tcp --dport $IPFS_PORT -j ACCEPT" >> $batman_script echo '' >> $batman_script echo ' systemctl restart avahi-daemon' >> $batman_script echo '}' >> $batman_script @@ -2285,6 +2286,7 @@ function mesh_batman_bridge { echo ' iptables -D INPUT -p udp --dport 5354 -j ACCEPT' >> $batman_script echo " iptables -D INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script echo " iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script + echo " iptables -D INPUT -p tcp --dport $IPFS_PORT -j ACCEPT" >> $batman_script echo '' >> $batman_script echo ' systemctl restart network-manager' >> $batman_script echo '}' >> $batman_script diff --git a/src/freedombone-client b/src/freedombone-client index a8a4844e..a697580a 100755 --- a/src/freedombone-client +++ b/src/freedombone-client @@ -48,6 +48,7 @@ SSH_KEX="curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256" 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" ZERONET_PORT=15441 +IPFS_PORT=4001 TRACKER_PORT=6969 # see https://stribika.github.io/2015/01/04/secure-secure-shell.html @@ -343,6 +344,7 @@ function mesh_batman { echo " iptables -A INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script echo " iptables -A INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script echo " iptables -A INPUT -p tcp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script + echo " iptables -A INPUT -p tcp --dport $IPFS_PORT -j ACCEPT" >> $batman_script echo " iptables -A INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script echo " iptables -A INPUT -p tcp --dport 80 -j ACCEPT" >> $batman_script echo " iptables -A INPUT -p udp -m udp -j ACCEPT" >> $batman_script @@ -388,6 +390,7 @@ function mesh_batman { echo " iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script echo " iptables -D INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script echo " iptables -D INPUT -p tcp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script + echo " iptables -D INPUT -p tcp --dport $IPFS_PORT -j ACCEPT" >> $batman_script echo " iptables -D INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script echo " iptables -D INPUT -p tcp --dport 80 -j ACCEPT" >> $batman_script echo " iptables -D INPUT -p udp -m udp -j ACCEPT" >> $batman_script