Open ipfs port on mesh

This commit is contained in:
Bob Mottram 2015-09-30 10:47:37 +01:00
parent 1e11d1f157
commit 5dd057635b
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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