diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox index 6991e430..96863682 100755 --- a/src/freedombone-app-tox +++ b/src/freedombone-app-tox @@ -195,6 +195,7 @@ function remove_tox_node { fi iptables -D INPUT -p tcp --dport $TOX_PORT -j ACCEPT + iptables -D INPUT -p udp --dport $TOX_PORT -j ACCEPT function_check save_firewall_settings save_firewall_settings @@ -268,6 +269,7 @@ function configure_firewall_for_tox { fi iptables -A INPUT -p tcp --dport $TOX_PORT -j ACCEPT + iptables -A INPUT -p udp --dport $TOX_PORT -j ACCEPT function_check save_firewall_settings save_firewall_settings diff --git a/src/freedombone-mesh-batman b/src/freedombone-mesh-batman index 6baae0e4..49c8ce6e 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 +TOX_PORT=33445 # Ethernet bridge definition (bridged to bat0) BRIDGE=br-mesh @@ -134,6 +135,8 @@ function stop { 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 $IPFS_PORT -j ACCEPT + iptables -D INPUT -p tcp --dport $TOX_PORT -j ACCEPT + iptables -D INPUT -p udp --dport $TOX_PORT -j ACCEPT systemctl restart network-manager } @@ -233,6 +236,8 @@ function start { iptables -A INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT iptables -A INPUT -p udp --dport $ZERONET_PORT -j ACCEPT iptables -A INPUT -p tcp --dport $IPFS_PORT -j ACCEPT + iptables -A INPUT -p tcp --dport $TOX_PORT -j ACCEPT + iptables -A INPUT -p udp --dport $TOX_PORT -j ACCEPT systemctl restart avahi-daemon