Quellcode durchsuchen

Some udp snafus

Bob Mottram vor 9 Jahren
Ursprung
Commit
e4eb54a55b
2 geänderte Dateien mit 9 neuen und 9 gelöschten Zeilen
  1. 3
    3
      src/freedombone
  2. 6
    6
      src/freedombone-client

+ 3
- 3
src/freedombone Datei anzeigen

@@ -5828,11 +5828,11 @@ function configure_firewall_for_avahi {
5828 5828
       return
5829 5829
   fi
5830 5830
   iptables -A INPUT -p tcp -m state -m tcp --dport 548 --state NEW -j ACCEPT
5831
-  iptables -A INPUT -p tcp -m state -m udp --dport 548 --state NEW -j ACCEPT
5831
+  iptables -A INPUT -p udp -m state -m udp --dport 548 --state NEW -j ACCEPT
5832 5832
   iptables -A INPUT -p tcp -m state -m tcp --dport 5353 --state NEW -j ACCEPT
5833
-  iptables -A INPUT -p tcp -m state -m udp --dport 5353 --state NEW -j ACCEPT
5833
+  iptables -A INPUT -p udp -m state -m udp --dport 5353 --state NEW -j ACCEPT
5834 5834
   iptables -A INPUT -p tcp -m state -m tcp --dport 5354 --state NEW -j ACCEPT
5835
-  iptables -A INPUT -p tcp -m state -m udp --dport 5354 --state NEW -j ACCEPT
5835
+  iptables -A INPUT -p udp -m state -m udp --dport 5354 --state NEW -j ACCEPT
5836 5836
   save_firewall_settings
5837 5837
   echo 'configure_firewall_for_avahi' >> $COMPLETION_FILE
5838 5838
 }

+ 6
- 6
src/freedombone-client Datei anzeigen

@@ -284,11 +284,11 @@ function mesh_batman {
284 284
   echo '    fi' >> $batman_script
285 285
   echo '' >> $batman_script
286 286
   echo '    iptables -A INPUT -p tcp -m state -m tcp --dport 548 --state NEW -j ACCEPT' >> $batman_script
287
-  echo '    iptables -A INPUT -p tcp -m state -m udp --dport 548 --state NEW -j ACCEPT' >> $batman_script
287
+  echo '    iptables -A INPUT -p udp -m state -m udp --dport 548 --state NEW -j ACCEPT' >> $batman_script
288 288
   echo '    iptables -A INPUT -p tcp -m state -m tcp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
289
-  echo '    iptables -A INPUT -p tcp -m state -m udp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
289
+  echo '    iptables -A INPUT -p udp -m state -m udp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
290 290
   echo '    iptables -A INPUT -p tcp -m state -m tcp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
291
-  echo '    iptables -A INPUT -p tcp -m state -m udp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
291
+  echo '    iptables -A INPUT -p udp -m state -m udp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
292 292
   echo '' >> $batman_script
293 293
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
294 294
   echo '        systemctl restart avahi-daemon' >> $batman_script
@@ -321,11 +321,11 @@ function mesh_batman {
321 321
   echo '    iwconfig $IFACE mode managed' >> $batman_script
322 322
   echo '' >> $batman_script
323 323
   echo '    iptables -D INPUT -p tcp -m state -m tcp --dport 548 --state NEW -j ACCEPT' >> $batman_script
324
-  echo '    iptables -D INPUT -p tcp -m state -m udp --dport 548 --state NEW -j ACCEPT' >> $batman_script
324
+  echo '    iptables -D INPUT -p udp -m state -m udp --dport 548 --state NEW -j ACCEPT' >> $batman_script
325 325
   echo '    iptables -D INPUT -p tcp -m state -m tcp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
326
-  echo '    iptables -D INPUT -p tcp -m state -m udp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
326
+  echo '    iptables -D INPUT -p udp -m state -m udp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
327 327
   echo '    iptables -D INPUT -p tcp -m state -m tcp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
328
-  echo '    iptables -D INPUT -p tcp -m state -m udp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
328
+  echo '    iptables -D INPUT -p udp -m state -m udp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
329 329
   echo '' >> $batman_script
330 330
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
331 331
   echo '        systemctl restart network-manager' >> $batman_script