소스 검색

Stateless mDNS

Bob Mottram 9 년 전
부모
커밋
3f058ebc3a
1개의 변경된 파일12개의 추가작업 그리고 12개의 파일을 삭제
  1. 12
    12
      src/freedombone-client

+ 12
- 12
src/freedombone-client 파일 보기

297
   echo '        ifconfig $BRIDGE up' >> $batman_script
297
   echo '        ifconfig $BRIDGE up' >> $batman_script
298
   echo '    fi' >> $batman_script
298
   echo '    fi' >> $batman_script
299
   echo '' >> $batman_script
299
   echo '' >> $batman_script
300
-  echo '    iptables -A INPUT -p tcp -m state -m tcp --dport 548 --state NEW -j ACCEPT' >> $batman_script
301
-  echo '    iptables -A INPUT -p udp -m state -m udp --dport 548 --state NEW -j ACCEPT' >> $batman_script
302
-  echo '    iptables -A INPUT -p tcp -m state -m tcp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
303
-  echo '    iptables -A INPUT -p udp -m state -m udp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
304
-  echo '    iptables -A INPUT -p tcp -m state -m tcp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
305
-  echo '    iptables -A INPUT -p udp -m state -m udp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
300
+  echo '    iptables -A INPUT -p tcp --dport 548 -j ACCEPT' >> $batman_script
301
+  echo '    iptables -A INPUT -p udp --dport 548 -j ACCEPT' >> $batman_script
302
+  echo '    iptables -A INPUT -p tcp --dport 5353 -j ACCEPT' >> $batman_script
303
+  echo '    iptables -A INPUT -p udp --dport 5353 -j ACCEPT' >> $batman_script
304
+  echo '    iptables -A INPUT -p tcp --dport 5354 -j ACCEPT' >> $batman_script
305
+  echo '    iptables -A INPUT -p udp --dport 5354 -j ACCEPT' >> $batman_script
306
   echo '' >> $batman_script
306
   echo '' >> $batman_script
307
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
307
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
308
   echo '        systemctl restart avahi-daemon' >> $batman_script
308
   echo '        systemctl restart avahi-daemon' >> $batman_script
335
   echo '    ifconfig $IFACE down' >> $batman_script
335
   echo '    ifconfig $IFACE down' >> $batman_script
336
   echo '    iwconfig $IFACE mode managed' >> $batman_script
336
   echo '    iwconfig $IFACE mode managed' >> $batman_script
337
   echo '' >> $batman_script
337
   echo '' >> $batman_script
338
-  echo '    iptables -D INPUT -p tcp -m state -m tcp --dport 548 --state NEW -j ACCEPT' >> $batman_script
339
-  echo '    iptables -D INPUT -p udp -m state -m udp --dport 548 --state NEW -j ACCEPT' >> $batman_script
340
-  echo '    iptables -D INPUT -p tcp -m state -m tcp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
341
-  echo '    iptables -D INPUT -p udp -m state -m udp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
342
-  echo '    iptables -D INPUT -p tcp -m state -m tcp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
343
-  echo '    iptables -D INPUT -p udp -m state -m udp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
338
+  echo '    iptables -D INPUT -p tcp --dport 548 -j ACCEPT' >> $batman_script
339
+  echo '    iptables -D INPUT -p udp --dport 548 -j ACCEPT' >> $batman_script
340
+  echo '    iptables -D INPUT -p tcp --dport 5353 -j ACCEPT' >> $batman_script
341
+  echo '    iptables -D INPUT -p udp --dport 5353 -j ACCEPT' >> $batman_script
342
+  echo '    iptables -D INPUT -p tcp --dport 5354 -j ACCEPT' >> $batman_script
343
+  echo '    iptables -D INPUT -p udp --dport 5354 -j ACCEPT' >> $batman_script
344
   echo '' >> $batman_script
344
   echo '' >> $batman_script
345
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
345
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
346
   echo '        systemctl restart network-manager' >> $batman_script
346
   echo '        systemctl restart network-manager' >> $batman_script