Add syncthing port to batman script
This commit is contained in:
parent
97d93ab7d0
commit
135c233962
|
@ -62,6 +62,7 @@ sed -i "s|Wifi channel:.*|Wifi channel:${CHANNEL}|g" $COMPLETION_FILE
|
||||||
|
|
||||||
ZERONET_PORT=15441
|
ZERONET_PORT=15441
|
||||||
IPFS_PORT=4001
|
IPFS_PORT=4001
|
||||||
|
SYNCTHING_PORT=22000
|
||||||
|
|
||||||
# Ethernet bridge definition (bridged to bat0)
|
# Ethernet bridge definition (bridged to bat0)
|
||||||
BRIDGE=br-mesh
|
BRIDGE=br-mesh
|
||||||
|
@ -124,6 +125,8 @@ function stop {
|
||||||
iptables -D INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT
|
iptables -D INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT
|
||||||
iptables -D INPUT -p udp --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 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
|
systemctl restart network-manager
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue