Procházet zdrojové kódy

Mesh firewall for babel protocol

Bob Mottram před 7 roky
rodič
revize
246ecc6c96
2 změnil soubory, kde provedl 16 přidání a 1 odebrání
  1. 4
    0
      src/freedombone-mesh-install
  2. 12
    1
      src/freedombone-utils-mesh

+ 4
- 0
src/freedombone-mesh-install Zobrazit soubor

233
     echo 'ip6tables -A INPUT -p udp --dport 269 -j ACCEPT' >> $MESH_FIREWALL_SCRIPT
233
     echo 'ip6tables -A INPUT -p udp --dport 269 -j ACCEPT' >> $MESH_FIREWALL_SCRIPT
234
     echo 'iptables -A INPUT -p tcp --dport 138 -j ACCEPT' >> $MESH_FIREWALL_SCRIPT
234
     echo 'iptables -A INPUT -p tcp --dport 138 -j ACCEPT' >> $MESH_FIREWALL_SCRIPT
235
     echo 'ip6tables -A INPUT -p tcp --dport 138 -j ACCEPT' >> $MESH_FIREWALL_SCRIPT
235
     echo 'ip6tables -A INPUT -p tcp --dport 138 -j ACCEPT' >> $MESH_FIREWALL_SCRIPT
236
+
237
+    echo '# Babel' >> $MESH_FIREWALL_SCRIPT
238
+    echo 'iptables -A INPUT -p udp --dport 6696 -j ACCEPT' >> $MESH_FIREWALL_SCRIPT
239
+    echo 'ip6tables -A INPUT -p udp --dport 6696 -j ACCEPT' >> $MESH_FIREWALL_SCRIPT
236
     chmod +x $MESH_FIREWALL_SCRIPT
240
     chmod +x $MESH_FIREWALL_SCRIPT
237
 
241
 
238
     echo '[Unit]' > $FIREWALL_FILENAME
242
     echo '[Unit]' > $FIREWALL_FILENAME

+ 12
- 1
src/freedombone-utils-mesh Zobrazit soubor

220
     # OLSR2/MANET
220
     # OLSR2/MANET
221
     iptables -A INPUT -p udp --dport 269 -j ACCEPT
221
     iptables -A INPUT -p udp --dport 269 -j ACCEPT
222
     iptables -A INPUT -p tcp --dport 138 -j ACCEPT
222
     iptables -A INPUT -p tcp --dport 138 -j ACCEPT
223
+    # Babel
224
+    iptables -A INPUT -p udp --dport 6696 -j ACCEPT
225
+    ip6tables -A INPUT -p udp --dport 6696 -j ACCEPT
223
 
226
 
224
 
227
 
225
     ip6tables -A INPUT -p ipv6-icmp -j ACCEPT
228
     ip6tables -A INPUT -p ipv6-icmp -j ACCEPT
253
     # OLSR2/MANET
256
     # OLSR2/MANET
254
     ip6tables -A INPUT -p udp --dport 269 -j ACCEPT
257
     ip6tables -A INPUT -p udp --dport 269 -j ACCEPT
255
     ip6tables -A INPUT -p tcp --dport 138 -j ACCEPT
258
     ip6tables -A INPUT -p tcp --dport 138 -j ACCEPT
259
+    # Babel
260
+    iptables -A INPUT -p udp --dport 6696 -j ACCEPT
261
+    ip6tables -A INPUT -p udp --dport 6696 -j ACCEPT
256
 
262
 
257
 
263
 
258
     # vpn over the internet
264
     # vpn over the internet
304
     # OLSR2/MANET
310
     # OLSR2/MANET
305
     iptables -D INPUT -p udp --dport 269 -j ACCEPT
311
     iptables -D INPUT -p udp --dport 269 -j ACCEPT
306
     iptables -D INPUT -p tcp --dport 138 -j ACCEPT
312
     iptables -D INPUT -p tcp --dport 138 -j ACCEPT
313
+    # Babel
314
+    iptables -D INPUT -p udp --dport 6696 -j ACCEPT
315
+    ip6tables -D INPUT -p udp --dport 6696 -j ACCEPT
307
 
316
 
308
 
317
 
309
     ip6tables -D INPUT -p tcp --dport $TRACKER_PORT -j ACCEPT
318
     ip6tables -D INPUT -p tcp --dport $TRACKER_PORT -j ACCEPT
336
     # OLSR2/MANET
345
     # OLSR2/MANET
337
     ip6tables -D INPUT -p udp --dport 269 -j ACCEPT
346
     ip6tables -D INPUT -p udp --dport 269 -j ACCEPT
338
     ip6tables -D INPUT -p tcp --dport 138 -j ACCEPT
347
     ip6tables -D INPUT -p tcp --dport 138 -j ACCEPT
339
-
348
+    # Babel
349
+    iptables -D INPUT -p udp --dport 6696 -j ACCEPT
350
+    ip6tables -D INPUT -p udp --dport 6696 -j ACCEPT
340
 
351
 
341
     # vpn over the internet
352
     # vpn over the internet
342
     iptables -D INPUT -p tcp --dport 653 -j ACCEPT
353
     iptables -D INPUT -p tcp --dport 653 -j ACCEPT