Przeglądaj źródła

Some udp snafus

Bob Mottram 9 lat temu
rodzic
commit
e4eb54a55b
2 zmienionych plików z 9 dodań i 9 usunięć
  1. 3
    3
      src/freedombone
  2. 6
    6
      src/freedombone-client

+ 3
- 3
src/freedombone Wyświetl plik

5828
       return
5828
       return
5829
   fi
5829
   fi
5830
   iptables -A INPUT -p tcp -m state -m tcp --dport 548 --state NEW -j ACCEPT
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
   iptables -A INPUT -p tcp -m state -m tcp --dport 5353 --state NEW -j ACCEPT
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
   iptables -A INPUT -p tcp -m state -m tcp --dport 5354 --state NEW -j ACCEPT
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
   save_firewall_settings
5836
   save_firewall_settings
5837
   echo 'configure_firewall_for_avahi' >> $COMPLETION_FILE
5837
   echo 'configure_firewall_for_avahi' >> $COMPLETION_FILE
5838
 }
5838
 }

+ 6
- 6
src/freedombone-client Wyświetl plik

284
   echo '    fi' >> $batman_script
284
   echo '    fi' >> $batman_script
285
   echo '' >> $batman_script
285
   echo '' >> $batman_script
286
   echo '    iptables -A INPUT -p tcp -m state -m tcp --dport 548 --state NEW -j ACCEPT' >> $batman_script
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
   echo '    iptables -A INPUT -p tcp -m state -m tcp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
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
   echo '    iptables -A INPUT -p tcp -m state -m tcp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
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
   echo '' >> $batman_script
292
   echo '' >> $batman_script
293
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
293
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
294
   echo '        systemctl restart avahi-daemon' >> $batman_script
294
   echo '        systemctl restart avahi-daemon' >> $batman_script
321
   echo '    iwconfig $IFACE mode managed' >> $batman_script
321
   echo '    iwconfig $IFACE mode managed' >> $batman_script
322
   echo '' >> $batman_script
322
   echo '' >> $batman_script
323
   echo '    iptables -D INPUT -p tcp -m state -m tcp --dport 548 --state NEW -j ACCEPT' >> $batman_script
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
   echo '    iptables -D INPUT -p tcp -m state -m tcp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
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
   echo '    iptables -D INPUT -p tcp -m state -m tcp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
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
   echo '' >> $batman_script
329
   echo '' >> $batman_script
330
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
330
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
331
   echo '        systemctl restart network-manager' >> $batman_script
331
   echo '        systemctl restart network-manager' >> $batman_script