Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DietPi-Software | Tor Hotspot: Start fails due to deprecated settings #3261

Closed
blizarazu opened this issue Dec 10, 2019 · 4 comments
Closed
Labels
Bug 🐞 Buster Solution available 🥂 Definite solution has been done
Milestone

Comments

@blizarazu
Copy link

Creating a bug report/issue

Required Information

  • DietPi version | cat /DietPi/dietpi/.version
    G_DIETPI_VERSION_CORE=6
    G_DIETPI_VERSION_SUB=26
    G_DIETPI_VERSION_RC=3
    G_GITBRANCH='master'
    G_GITOWNER='MichaIng'
  • Distro version | echo $G_DISTRO_NAME or cat /etc/debian_version
    buster . 10.2
  • Kernel version | uname -a
    Linux DietPi 4.19.75-v7+ DietPi-System | Quirks noticed by v158 image update  #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
  • SBC device | echo $G_HW_MODEL_DESCRIPTION or (EG: RPi3)
    RPi 3 Model B+ (armv7l)
  • Power supply used | (EG: 5V 1A RAVpower)
    5V 2.1A
  • SDcard used | (EG: SanDisk ultra)
    Samsung EVO Plus 32GB

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)
    Tor Hotspot
  • Was the software title installed freshly or updated/migrated?
    Installed freshly
  • Can this issue be replicated on a fresh installation of DietPi?
    Yes

Steps to reproduce

  1. Install Tor Hotspot application
  2. Connect to the hotspot with another device

Expected behaviour

  • You should be able to navigate using Tor.

Actual behaviour

  • The device has no internet connection.

Extra details

  • If I install the Wifi Hotspot only, there is internet connection through the hotspot. But once you install the Tor Hotspot you can't navigate anymore.
@MichaIng
Copy link
Owner

@blizarazu
Many thanks for your report. Since I didn't use Tor for a while, I need to do some test install. Please keep us updated if you find some solution or additional debug info meanwhile.

@blizarazu
Copy link
Author

I think I found the solution in this tutorial:
https://3os.org/raspberryPi/TOR-Pi/

As the user Apocalypse1508 says in the comments, the config entries "TransListenAddress" and "DNSListenAddress" seem to be deprecated, so I added the IP to "DNSPort" and "TransPort" and removed the "TransListenAddress" and "DNSListenAddress" entries.

@blizarazu
Copy link
Author

I also have to reload tor after restoring the iptables rules on each boot.

@MichaIng
Copy link
Owner

MichaIng commented Dec 12, 2019

@blizarazu
Okay, indeed those two settings are deprecated since at least Stretch, were still supported on Stretch but not anymore on Buster (respectively the related/shipped Tor version).

Fixed with: 79a1f9d
Changelog: da99704

Do you agree to skip file logging and instead keep logs in journal, available via journalctl -u tor or journalctl to have other probably related syslogs aside? I aim to remove file-based logging for software, where possible, since journal is the default and always present on Debian anyway. Otherwise e.g. logs from the service/systemd unit are in journal, while binary logs are in file, which makes debugging more difficult when one always needs to check both.

I also have to reload tor after restoring the iptables rules on each boot.

Hmm, iptables rules should be restored on boot automatically by networking.service, when the network interface is initialised. Or does this happen but you still need to reload the tor service? In this case probably tor starts too early, e.g. I recognised that it sorts itself after the network.target while since Stretch the network-online.target makes more sense. Could you paste the following:

journalctl -u networking -u ifup@eth0 -u ifup@wlan0 -u tor

@MichaIng MichaIng added this to the v6.27 milestone Dec 12, 2019
@MichaIng MichaIng changed the title Tor hotspot does not have internet access DietPi-Software | Tor Hotspot: Start fails due to deprecated settings Dec 12, 2019
@MichaIng MichaIng closed this as completed Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 Buster Solution available 🥂 Definite solution has been done
Projects
None yet
Development

No branches or pull requests

2 participants