|
@@ -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
|
+TOX_PORT=33445
|
65
|
66
|
|
66
|
67
|
# Ethernet bridge definition (bridged to bat0)
|
67
|
68
|
BRIDGE=br-mesh
|
|
@@ -134,6 +135,8 @@ function stop {
|
134
|
135
|
iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT
|
135
|
136
|
iptables -D INPUT -p tcp --dport $IPFS_PORT -j ACCEPT
|
136
|
137
|
iptables -D INPUT -p udp --dport $IPFS_PORT -j ACCEPT
|
|
138
|
+ iptables -D INPUT -p tcp --dport $TOX_PORT -j ACCEPT
|
|
139
|
+ iptables -D INPUT -p udp --dport $TOX_PORT -j ACCEPT
|
137
|
140
|
|
138
|
141
|
systemctl restart network-manager
|
139
|
142
|
}
|
|
@@ -233,6 +236,8 @@ function start {
|
233
|
236
|
iptables -A INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT
|
234
|
237
|
iptables -A INPUT -p udp --dport $ZERONET_PORT -j ACCEPT
|
235
|
238
|
iptables -A INPUT -p tcp --dport $IPFS_PORT -j ACCEPT
|
|
239
|
+ iptables -A INPUT -p tcp --dport $TOX_PORT -j ACCEPT
|
|
240
|
+ iptables -A INPUT -p udp --dport $TOX_PORT -j ACCEPT
|
236
|
241
|
|
237
|
242
|
systemctl restart avahi-daemon
|
238
|
243
|
|