Bladeren bron

Add tor logging

Bob Mottram 10 jaren geleden
bovenliggende
commit
365c88ca65
1 gewijzigde bestanden met toevoegingen van 10 en 1 verwijderingen
  1. 10
    1
      install-freedombone.sh

+ 10
- 1
install-freedombone.sh Bestand weergeven

@@ -7019,6 +7019,11 @@ function route_outgoing_traffic_through_tor {
7019 7019
   echo 'search localdomain' >> /etc/resolv.conf
7020 7020
   echo "nameserver $WIFI_STATIC_IP_ADDRESS" >> /etc/resolv.conf
7021 7021
 
7022
+
7023
+  if ! grep -q 'Log notice file /var/log/tor/notices.log' /etc/tor/torrc; then
7024
+      echo 'Log notice file /var/log/tor/notices.log' >> /etc/tor/torrc
7025
+  fi
7026
+
7022 7027
   if ! grep -q "VirtualAddrNetworkIPv4" /etc/tor/torrc; then
7023 7028
       echo 'VirtualAddrNetworkIPv4 10.192.0.0/10' >> /etc/tor/torrc
7024 7029
   fi
@@ -7047,6 +7052,10 @@ function route_outgoing_traffic_through_tor {
7047 7052
       echo "DNSListenAddress $WIFI_STATIC_IP_ADDRESS" >> /etc/tor/torrc
7048 7053
   fi
7049 7054
 
7055
+  touch /var/log/tor/notices.log
7056
+  chown debian-tor /var/log/tor/notices.log
7057
+  chmod 644 /var/log/tor/notices.log
7058
+
7050 7059
   echo 'route_outgoing_traffic_through_tor' >> $COMPLETION_FILE
7051 7060
 
7052 7061
   if [[ $ENABLE_WIFI_HOTSPOT == "yes" ]]; then
@@ -7187,7 +7196,7 @@ function enable_wifi_hotspot {
7187 7196
       exit 490
7188 7197
   fi
7189 7198
 
7190
-  mv /usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service ~/
7199
+  #mv /usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service ~/
7191 7200
 
7192 7201
   sed -i 's|#DAEMON_CONF=.*|DAEMON_CONF="/etc/hostapd/hostapd.conf"|g' /etc/default/hostapd
7193 7202