Tox ports open for mesh

This commit is contained in:
Bob Mottram 2016-08-24 08:45:50 +01:00
parent 92540a24a5
commit d20e0dc15a
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
2 changed files with 7 additions and 0 deletions

View File

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

View File

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