[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-relays] torrc, unit files, confusion
- To: tor-relays@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [tor-relays] torrc, unit files, confusion
- From: Martin Gebhardt <martin@xxxxxxxxxxx>
- Date: Sat, 19 Feb 2022 00:07:06 +0100
- Authentication-results: rw0b2d; spf=pass (sender IP is 185.220.101.57) smtp.mailfrom=martin@xxxxxxxxxxx smtp.helo=[192.168.178.159]
- Autocrypt: addr=martin@xxxxxxxxxxx; keydata= xsFNBGHx25kBEACa6X8shMQ7JFK8vjeqN46vdxlKTSnGaFkYF1/DnRB2Gly7Ec/jH3xTriyi SgZ91UEq+KIs4VfW0u8axls/0t0lGxD0CRPWYpbGccEODWLVM5SiZNvvS9YWXmkakEX9pL4g lF7v5sV8N/YdgODljaXz/vHa+lgyQtSeozKkudSDC8wafjR14A859P8fjlEbTdIkIhdJF7Gz Ltzl2T4sIiJhWjFgorZzXqkvQShHIQdoz72Ckx6roh9r4ZVJjl+BYInMYBErH829bmGqWVF8 JOC80dAGyaoJtRzBqjsI/pYucFJI5fdNeycSdoMBD88TlXnMf9a2xxbckrYyVaxQFVrH00Q3 EWsL19/mH/N9sJ8bOe9yk9QmYuh1MVbpS4zlKXGHeXlyhuvItqLBcwECcVQHUSJJwyRrfTPJ s+cNfwMKMRoSTtt2l6peYka6RjjvORoPDfJpSmmKtW5DTueL+nTLplJVqpczteLqmCuXlTni GDpFRXUBkQ4aeJI0Kij6NNGoVDUT8cWNBL6fX9LoSoBM1rDNOUQYhM884HTB5r1fafG/kFau /b4LvJnWpqQLBcEHGVrlQFubdN6j76MxwOunIk6DE5sk24zSPETH/teHXNDm2ef1Rq1KWjRl 7k5YImYS/IjO1NHy4QOP84PW8EI7BGUoN7+QYro2eLHJX9ljAwARAQABzSRNYXJ0aW4gR2Vi aGFyZHQgPG1hcnRpbkBnZWJoYXJkdC5pbT7CwZQEEwEKAD4WIQSFI5W9lyjNFzLshN5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naUISJqv7iibJoLT6tFK6O20PfayF3+ akmzGBdGxM8A1rXN8226/h9cqadMzFGWFaOeVyG1gqfu8vbrGqQfjJ8BROeDWqP8sx9t6Fjy
- Delivered-to: archiver@xxxxxxxx
- Delivery-date: Sat, 19 Feb 2022 00:35:00 -0500
- In-reply-to: <5941900.OfyQhDVH30@w530>
- List-archive: <http://lists.torproject.org/pipermail/tor-relays/>
- List-help: <mailto:tor-relays-request@lists.torproject.org?subject=help>
- List-id: "support and questions about running Tor relays \(exit, non-exit, bridge\)" <tor-relays.lists.torproject.org>
- List-post: <mailto:tor-relays@lists.torproject.org>
- List-subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays>, <mailto:tor-relays-request@lists.torproject.org?subject=subscribe>
- List-unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-relays>, <mailto:tor-relays-request@lists.torproject.org?subject=unsubscribe>
- References: <d5ec25d2-0ead-eacc-2396-0ac4554b191f@gebhardt.im> <5941900.OfyQhDVH30@w530>
- Reply-to: tor-relays@xxxxxxxxxxxxxxxxxxxx
- Sender: "tor-relays" <tor-relays-bounces@xxxxxxxxxxxxxxxxxxxx>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0
Hi,
The problem is solved.
There is a conflict between the recursive function of %include and the
AppArmor profile.
This can be traced here in line 27:
https://gitlab.torproject.org/tpo/core/debian/tor/-/blob/debian-main/debian/tor.apparmor-profile.abstraction
Because the list was down for a few days, I opened the topic in the
forum. If you are interested, you can see the way to solution here:
https://forum.torproject.net/t/torrc-unit-files-confusion/2217
--
Martin
On 2/18/22 15:24, lists@xxxxxxxxxxxxxxx wrote:
On Wednesday, February 16, 2022 8:07:21 AM CET Martin Gebhardt wrote:
I've gotten myself stuck in a situation that I can't get out of. The
following:
I have a working relay. You can find the config for it in the attachment
[1].
I want to move parts of the config. So I use %include.
I don't do anything else than moving parts of the working config to
other files. There are no changes at all. But, tor does not start
anymore.In the attachment [2] you can find the config with %include. The
folder structure is the following:
├── info.html
├── rc.d
│ ├── contact.rc
│ ├── family.rc
│ └── nickname.rc
├── torrc
└── torsocks.conf
Your '/lib/systemd/system/tor@default.service' is default like on all my
Debian systems.
Did you specify the whole path in '%include'? I have:
# Include MyFamily & ContactInfo
%include /etc/tor/torrc.all
# Include Exit Policy
%include /etc/tor/torrc.exit
For me it is like this, the instances from the subfolders use the configs
above.
/etc/tor (root:root mode=drwxr-xr-x)
├── torrc.all
├── torrc.exit
├── instances
├── 00
├── torrc
├── 01
├── torrc
...
To rule out a bug, change 'rc.d' to 'rcd'. Without dot in folder name.
_______________________________________________
tor-relays mailing list
tor-relays@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
Attachment:
OpenPGP_0x5472B866EA6CD3DD.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________
tor-relays mailing list
tor-relays@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays