Browse Source

Install tor on mesh peers, but disable it by default

Bob Mottram 7 years ago
parent
commit
f816b7076f
2 changed files with 7 additions and 0 deletions
  1. 3
    0
      src/freedombone-image-customise
  2. 4
    0
      src/freedombone-image-mesh

+ 3
- 0
src/freedombone-image-customise View File

@@ -682,6 +682,9 @@ initialise_mesh() {
682 682
 
683 683
     chroot "$rootdir" apt-get -yq install apt-transport-https
684 684
 
685
+    # install tor as a possible way of routing traffic between internet gateways
686
+    chroot "$rootdir" apt-get -yq install tor
687
+
685 688
     configure_firewall
686 689
     install_avahi
687 690
     install_batman

+ 4
- 0
src/freedombone-image-mesh View File

@@ -1012,6 +1012,10 @@ if [ -f $MESH_INSTALL_SETUP ]; then
1012 1012
         chown ${MY_USERNAME}:${MY_USERNAME} /home/$MY_USERNAME/.config
1013 1013
     fi
1014 1014
 
1015
+    systemctl tor stop
1016
+    systemctl tor disable
1017
+    echo $'TOR disabled' >> $INSTALL_LOG
1018
+
1015 1019
     #tomb slam all
1016 1020
     tmp_ram_disk 100
1017 1021
     enable_predictable_device_names