Przeglądaj źródła

Tox ports open for mesh

Bob Mottram 8 lat temu
rodzic
commit
d20e0dc15a
Brak konta powiązanego z e-mailem autora
2 zmienionych plików z 7 dodań i 0 usunięć
  1. 2
    0
      src/freedombone-app-tox
  2. 5
    0
      src/freedombone-mesh-batman

+ 2
- 0
src/freedombone-app-tox Wyświetl plik

195
     fi
195
     fi
196
 
196
 
197
     iptables -D INPUT -p tcp --dport $TOX_PORT -j ACCEPT
197
     iptables -D INPUT -p tcp --dport $TOX_PORT -j ACCEPT
198
+    iptables -D INPUT -p udp --dport $TOX_PORT -j ACCEPT
198
     function_check save_firewall_settings
199
     function_check save_firewall_settings
199
     save_firewall_settings
200
     save_firewall_settings
200
 
201
 
268
     fi
269
     fi
269
 
270
 
270
     iptables -A INPUT -p tcp --dport $TOX_PORT -j ACCEPT
271
     iptables -A INPUT -p tcp --dport $TOX_PORT -j ACCEPT
272
+    iptables -A INPUT -p udp --dport $TOX_PORT -j ACCEPT
271
     function_check save_firewall_settings
273
     function_check save_firewall_settings
272
     save_firewall_settings
274
     save_firewall_settings
273
 
275
 

+ 5
- 0
src/freedombone-mesh-batman Wyświetl plik

62
 
62
 
63
 ZERONET_PORT=15441
63
 ZERONET_PORT=15441
64
 IPFS_PORT=4001
64
 IPFS_PORT=4001
65
+TOX_PORT=33445
65
 
66
 
66
 # Ethernet bridge definition (bridged to bat0)
67
 # Ethernet bridge definition (bridged to bat0)
67
 BRIDGE=br-mesh
68
 BRIDGE=br-mesh
134
     iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT
135
     iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT
135
     iptables -D INPUT -p tcp --dport $IPFS_PORT -j ACCEPT
136
     iptables -D INPUT -p tcp --dport $IPFS_PORT -j ACCEPT
136
     iptables -D INPUT -p udp --dport $IPFS_PORT -j ACCEPT
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
     systemctl restart network-manager
141
     systemctl restart network-manager
139
 }
142
 }
233
     iptables -A INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT
236
     iptables -A INPUT -p tcp --dport $ZERONET_PORT -j ACCEPT
234
     iptables -A INPUT -p udp --dport $ZERONET_PORT -j ACCEPT
237
     iptables -A INPUT -p udp --dport $ZERONET_PORT -j ACCEPT
235
     iptables -A INPUT -p tcp --dport $IPFS_PORT -j ACCEPT
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
     systemctl restart avahi-daemon
242
     systemctl restart avahi-daemon
238
 
243