Bob Mottram hace 9 años
padre
commit
25a236fd65
Se han modificado 2 ficheros con 5 adiciones y 2 borrados
  1. 2
    0
      src/freedombone-client
  2. 3
    2
      src/freedombone-meshweb

+ 2
- 0
src/freedombone-client Ver fichero

@@ -342,6 +342,7 @@ function mesh_batman {
342 342
   echo "    iptables -A INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
343 343
   echo "    iptables -A INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
344 344
   echo "    iptables -A INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script
345
+  echo "    iptables -A INPUT -p tcp --dport 80 -j ACCEPT" >> $batman_script
345 346
   echo '' >> $batman_script
346 347
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
347 348
   echo '        systemctl restart avahi-daemon' >> $batman_script
@@ -384,6 +385,7 @@ function mesh_batman {
384 385
   echo "    iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
385 386
   echo "    iptables -D INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
386 387
   echo "    iptables -D INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script
388
+  echo "    iptables -D INPUT -p tcp --dport 80 -j ACCEPT" >> $batman_script
387 389
   echo '' >> $batman_script
388 390
   echo '    if [ -f /bin/systemctl ]; then' >> $batman_script
389 391
   echo '        systemctl restart network-manager' >> $batman_script

+ 3
- 2
src/freedombone-meshweb Ver fichero

@@ -26,7 +26,8 @@ function install_zeronet {
26 26
       exit 56823
27 27
   fi
28 28
   cd $ZERONET_DIR
29
-  git checkout bashrc/bootstrap-file
29
+  #git checkout bashrc/bootstrap-file
30
+  git checkout bashrc/test
30 31
 }
31 32
 
32 33
 if [ -f /var/lib/batman ]; then
@@ -80,7 +81,7 @@ if [ $existing_bttrack -lt "2" ]; then
80 81
 	if [ ! -d ~/.bttrack ]; then
81 82
 		mkdir ~/.bttrack
82 83
 	fi
83
-    bttrack --port ${TRACKER_PORT} --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full --ipv6_enabled 0 --bind 127.0.0.1 &
84
+    bttrack --port ${TRACKER_PORT} --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full --ipv6_enabled 0 &
84 85
 fi
85 86
 
86 87
 zeronetavahi