Tox ports open for mesh
This commit is contained in:
parent
92540a24a5
commit
d20e0dc15a
|
@ -195,6 +195,7 @@ function remove_tox_node {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
iptables -D INPUT -p tcp --dport $TOX_PORT -j ACCEPT
|
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
|
function_check save_firewall_settings
|
||||||
save_firewall_settings
|
save_firewall_settings
|
||||||
|
|
||||||
|
@ -268,6 +269,7 @@ function configure_firewall_for_tox {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
iptables -A INPUT -p tcp --dport $TOX_PORT -j ACCEPT
|
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
|
function_check save_firewall_settings
|
||||||
save_firewall_settings
|
save_firewall_settings
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
TOX_PORT=33445
|
||||||
|
|
||||||
# Ethernet bridge definition (bridged to bat0)
|
# Ethernet bridge definition (bridged to bat0)
|
||||||
BRIDGE=br-mesh
|
BRIDGE=br-mesh
|
||||||
|
@ -134,6 +135,8 @@ function stop {
|
||||||
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 $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
|
systemctl restart network-manager
|
||||||
}
|
}
|
||||||
|
@ -233,6 +236,8 @@ function start {
|
||||||
iptables -A INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT
|
iptables -A INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT
|
||||||
iptables -A INPUT -p udp --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 $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
|
systemctl restart avahi-daemon
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue