Ver código fonte

Add syncthing port to batman script

Bob Mottram 8 anos atrás
pai
commit
135c233962
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3
    0
      src/freedombone-mesh-batman

+ 3
- 0
src/freedombone-mesh-batman Ver arquivo

@@ -62,6 +62,7 @@ sed -i "s|Wifi channel:.*|Wifi channel:${CHANNEL}|g" $COMPLETION_FILE
62 62
 
63 63
 ZERONET_PORT=15441
64 64
 IPFS_PORT=4001
65
+SYNCTHING_PORT=22000
65 66
 
66 67
 # Ethernet bridge definition (bridged to bat0)
67 68
 BRIDGE=br-mesh
@@ -124,6 +125,8 @@ function stop {
124 125
     iptables -D INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT
125 126
     iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT
126 127
     iptables -D INPUT -p tcp --dport $IPFS_PORT -j ACCEPT
128
+    iptables -D INPUT -p udp --dport $SYNCTHING_PORT -j ACCEPT
129
+    iptables -D INPUT -p tcp --dport $SYNCTHING_PORT -j ACCEPT
127 130
 
128 131
     systemctl restart network-manager
129 132
 }