From 135c233962f62d209a673426032cdf5050794172 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 5 Aug 2016 23:21:10 +0100 Subject: [PATCH] Add syncthing port to batman script --- src/freedombone-mesh-batman | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/freedombone-mesh-batman b/src/freedombone-mesh-batman index 70f092cf..a16ce376 100755 --- a/src/freedombone-mesh-batman +++ b/src/freedombone-mesh-batman @@ -62,6 +62,7 @@ sed -i "s|Wifi channel:.*|Wifi channel:${CHANNEL}|g" $COMPLETION_FILE ZERONET_PORT=15441 IPFS_PORT=4001 +SYNCTHING_PORT=22000 # Ethernet bridge definition (bridged to bat0) BRIDGE=br-mesh @@ -124,6 +125,8 @@ function stop { iptables -D INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT iptables -D INPUT -p tcp --dport $IPFS_PORT -j ACCEPT + iptables -D INPUT -p udp --dport $SYNCTHING_PORT -j ACCEPT + iptables -D INPUT -p tcp --dport $SYNCTHING_PORT -j ACCEPT systemctl restart network-manager }