Re: Tor Relay log warning

2021-05-07 Thread lawgiver
On 5/5/2021 at 5:34 PM, "Theo Buehler"  wrote:
>
>On Wed, May 05, 2021 at 08:06:09AM -0300, Matheus Coelho wrote:
>> Hello List!
>> 
>> I have a tor relay server and in version 6.9 of openbsd the log 
>started
>> showing this message:
>> 
>> tor_tls_finish_handshake: Bug: For some reason, wasV2Handshake 
>didn't get
>> set. Fixing that. (on Tor 0.4.5.7 )

Experiencing the same (running a bridge).

>> I suspect something related to libressl according to this post:
>
>Yes, libressl doesn't fully support the info callback that tor
>relies on to set wasV2Handshake. This will be a bit tricky to fix.
>I think tor will still work, but the log spam is annoying.

For what it's worth, metrics.torproject.org now reports my bridge as "offline", 
so in this instance tor no longer appears to still work.

>> https://gitlab.torproject.org/tpo/core/tor/-/issues/40128
>
>This post conflates many different issues, most of which should be
>resolved.
>
>> 
>> it makes sense?
>> 
>> thanks in advance.
>> --
>> Matheus Coelho Torres Macedo

-lg.



Re: Tor Relay log warning

2021-05-05 Thread Theo Buehler
On Wed, May 05, 2021 at 08:06:09AM -0300, Matheus Coelho wrote:
> Hello List!
> 
> I have a tor relay server and in version 6.9 of openbsd the log started
> showing this message:
> 
> tor_tls_finish_handshake: Bug: For some reason, wasV2Handshake didn't get
> set. Fixing that. (on Tor 0.4.5.7 )
> 
> I suspect something related to libressl according to this post:

Yes, libressl doesn't fully support the info callback that tor
relies on to set wasV2Handshake. This will be a bit tricky to fix.
I think tor will still work, but the log spam is annoying.

> https://gitlab.torproject.org/tpo/core/tor/-/issues/40128

This post conflates many different issues, most of which should be
resolved.

> 
> it makes sense?
> 
> thanks in advance.
> --
> Matheus Coelho Torres Macedo



Tor Relay log warning

2021-05-05 Thread Matheus Coelho
Hello List!

I have a tor relay server and in version 6.9 of openbsd the log started
showing this message:

tor_tls_finish_handshake: Bug: For some reason, wasV2Handshake didn't get
set. Fixing that. (on Tor 0.4.5.7 )

I suspect something related to libressl according to this post:

https://gitlab.torproject.org/tpo/core/tor/-/issues/40128

it makes sense?

thanks in advance.
--
Matheus Coelho Torres Macedo


Re: obsd 6.7 - TOR relay (non-exit) & /var folder

2020-06-28 Thread Graeme Neilson
What do you have set for Log notice in /etc/tor/torrc?

I run a tor relay without problems on 6.7 and use:
Log notice syslog



On Sun, 28 Jun 2020 at 13:59, Salvatore Cuzzilla 
wrote:

> the issue is temporary “solved":
>
> 03:42:36 -ksh ToTo@APU2c4 ~ $ doas cat /etc/tor/torrc | egrep "^Log "
> Log debug file /dev/null
> Log info file /dev/null
> Log notice file /dev/null
>
> it’s confirmed that something is not going well with the logs handling ...
>
>
>
> On 25 Jun 2020, at 15:39, Stuart Henderson  wrote:
>
> On 2020/06/25 14:59, Salvatore Cuzzilla wrote:
> >
> > Unfortunately the only think i know for sure is that the /var folder is
> > constantly loosing free space & When i restart tor it gets back to
> > normal. I can't (I don't know how to) figure out the involved files ...
> >
> > "du" is not really helping nor "fstat"  ... Is there anything else
> > i could test?
>
> du won't show size of an unlinked file.
>
> fstat won't show filenames but will show inode numbes. If it is from a
> file that existed at startup and was then moved away, you could capture
> inode numbers of all files on the filesystem when starting (find /var
> -ls, the first number is the inode number), then compare with the INUM
> column in fstat.
>
> Or, if you change logs to syslog, and that fixes the problem, you have
> your answer...
>
>
> > On 25.06.2020 09:29, Stuart Henderson wrote:
> >> On 2020-06-24, Salvatore Cuzzilla  wrote:
> >>> After few attempts, I can't still don't understand what's going on
> >>> it seems that the only way to free up the /var folder is to restart the
> >>> tor's daemon.
> >>>
> >>> "pkill -HUP -u _tor -U _tor -x tor" didn't help ...
> >>>
> >>> Other ideas?
> >>
> >> Did you figure out what files are involved?
> >>
> >> If it's logs, use syslog instead.
> >>
> >
> > ---
> > :wq,
> > Salvatore.
>
>
>


Re: obsd 6.7 - TOR relay (non-exit) & /var folder

2020-06-27 Thread Salvatore Cuzzilla
the issue is temporary “solved":

03:42:36 -ksh ToTo@APU2c4 ~ $ doas cat /etc/tor/torrc | egrep "^Log "
Log debug file /dev/null
Log info file /dev/null
Log notice file /dev/null

it’s confirmed that something is not going well with the logs handling ...



On 25 Jun 2020, at 15:39, Stuart Henderson  wrote:

On 2020/06/25 14:59, Salvatore Cuzzilla wrote:
> 
> Unfortunately the only think i know for sure is that the /var folder is
> constantly loosing free space & When i restart tor it gets back to
> normal. I can't (I don't know how to) figure out the involved files ...
> 
> "du" is not really helping nor "fstat"  ... Is there anything else
> i could test?

du won't show size of an unlinked file.

fstat won't show filenames but will show inode numbes. If it is from a
file that existed at startup and was then moved away, you could capture
inode numbers of all files on the filesystem when starting (find /var
-ls, the first number is the inode number), then compare with the INUM
column in fstat.

Or, if you change logs to syslog, and that fixes the problem, you have
your answer...


> On 25.06.2020 09:29, Stuart Henderson wrote:
>> On 2020-06-24, Salvatore Cuzzilla  wrote:
>>> After few attempts, I can't still don't understand what's going on
>>> it seems that the only way to free up the /var folder is to restart the
>>> tor's daemon.
>>> 
>>> "pkill -HUP -u _tor -U _tor -x tor" didn't help ...
>>> 
>>> Other ideas?
>> 
>> Did you figure out what files are involved?
>> 
>> If it's logs, use syslog instead.
>> 
> 
> ---
> :wq,
> Salvatore.




Re: obsd 6.7 - TOR relay (non-exit) & /var folder

2020-06-25 Thread Stuart Henderson
On 2020/06/25 14:59, Salvatore Cuzzilla wrote:
> 
> Unfortunately the only think i know for sure is that the /var folder is
> constantly loosing free space & When i restart tor it gets back to
> normal. I can't (I don't know how to) figure out the involved files ...
> 
> "du" is not really helping nor "fstat"  ... Is there anything else
> i could test?

du won't show size of an unlinked file.

fstat won't show filenames but will show inode numbes. If it is from a
file that existed at startup and was then moved away, you could capture
inode numbers of all files on the filesystem when starting (find /var
-ls, the first number is the inode number), then compare with the INUM
column in fstat.

Or, if you change logs to syslog, and that fixes the problem, you have
your answer...


> On 25.06.2020 09:29, Stuart Henderson wrote:
> > On 2020-06-24, Salvatore Cuzzilla  wrote:
> > > After few attempts, I can't still don't understand what's going on
> > > it seems that the only way to free up the /var folder is to restart the
> > > tor's daemon.
> > > 
> > > "pkill -HUP -u _tor -U _tor -x tor" didn't help ...
> > > 
> > > Other ideas?
> > 
> > Did you figure out what files are involved?
> > 
> > If it's logs, use syslog instead.
> > 
> 
> ---
> :wq,
> Salvatore.



Re: obsd 6.7 - TOR relay (non-exit) & /var folder

2020-06-25 Thread Salvatore Cuzzilla



Unfortunately the only think i know for sure is that the /var folder is
constantly loosing free space & When i restart tor it gets back to
normal. I can't (I don't know how to) figure out the involved files ... 


"du" is not really helping nor "fstat"  ... Is there anything else
i could test?

On 25.06.2020 09:29, Stuart Henderson wrote:

On 2020-06-24, Salvatore Cuzzilla  wrote:

After few attempts, I can't still don't understand what's going on
it seems that the only way to free up the /var folder is to restart the
tor's daemon.

"pkill -HUP -u _tor -U _tor -x tor" didn't help ...

Other ideas?


Did you figure out what files are involved?

If it's logs, use syslog instead.



---
:wq,
Salvatore.



Re: obsd 6.7 - TOR relay (non-exit) & /var folder

2020-06-25 Thread Stuart Henderson
On 2020-06-24, Salvatore Cuzzilla  wrote:
> After few attempts, I can't still don't understand what's going on
> it seems that the only way to free up the /var folder is to restart the
> tor's daemon.
>
> "pkill -HUP -u _tor -U _tor -x tor" didn't help ...
>
> Other ideas?

Did you figure out what files are involved?

If it's logs, use syslog instead.



Re: obsd 6.7 - TOR relay (non-exit) & /var folder

2020-06-24 Thread Salvatore Cuzzilla

After few attempts, I can't still don't understand what's going on
it seems that the only way to free up the /var folder is to restart the
tor's daemon.

"pkill -HUP -u _tor -U _tor -x tor" didn't help ...

Other ideas?

On 23.06.2020 11:50, Salvatore Cuzzilla wrote:

Hi Gabriel,

thanks for the hint!

I actually use to "rcctl reload tor" to rotate the logs.
I now switched to "pkill -HUP -u _tor -U _tor -x tor" let's see if it's helping!


Regards,
Salvatore.


June 23, 2020 12:53 PM, "Salvatore Cuzzilla"  wrote:


Hi Folks,

I’m running a TOR node on my [APU2c4 (SSD) + OBSD 6.7]

somehow the TOR process is polluting my /var folder until, after few days, it’s 
fulfilled (~6G).
In the beginning I thought that it was related to the daemon's logs, something 
misconfigured within
newsyslog.conf ... it’s not!

the funny thing is that, as soon as shut the daemon the /var folder is free-up 
back again…

-
12:46:44 -ksh root@APU2c4 /var/tor/diff-cache # df -h | grep /var
/dev/sd0e 6.3G 1.7G 4.4G 28% /var

12:46:55 -ksh root@APU2c4 /var/tor/diff-cache # rcctl stop tor
tor(ok)

12:48:00 -ksh root@APU2c4 /var/tor/diff-cache # df -h | grep /var
/dev/sd0e 6.3G 327M 5.7G 5% /var
12:48:00 -ksh root@APU2c4 /var/tor/diff-cache
-

I’m a bit lost, from where should I start?

Regards,
Salvatore.


---
:wq,
Salvatore.



Re: obsd 6.7 - TOR relay (non-exit) & /var folder

2020-06-23 Thread Salvatore Cuzzilla
Hi Gabriel,

thanks for the hint!

I actually use to "rcctl reload tor" to rotate the logs.
I now switched to "pkill -HUP -u _tor -U _tor -x tor" let's see if it's helping!


Regards,
Salvatore.


June 23, 2020 12:53 PM, "Salvatore Cuzzilla"  wrote:

> Hi Folks,
> 
> I’m running a TOR node on my [APU2c4 (SSD) + OBSD 6.7]
> 
> somehow the TOR process is polluting my /var folder until, after few days, 
> it’s fulfilled (~6G).
> In the beginning I thought that it was related to the daemon's logs, 
> something misconfigured within
> newsyslog.conf ... it’s not!
> 
> the funny thing is that, as soon as shut the daemon the /var folder is 
> free-up back again…
> 
> -
> 12:46:44 -ksh root@APU2c4 /var/tor/diff-cache # df -h | grep /var
> /dev/sd0e 6.3G 1.7G 4.4G 28% /var
> 
> 12:46:55 -ksh root@APU2c4 /var/tor/diff-cache # rcctl stop tor
> tor(ok)
> 
> 12:48:00 -ksh root@APU2c4 /var/tor/diff-cache # df -h | grep /var
> /dev/sd0e 6.3G 327M 5.7G 5% /var
> 12:48:00 -ksh root@APU2c4 /var/tor/diff-cache 
> -
> 
> I’m a bit lost, from where should I start?
> 
> Regards,
> Salvatore.



obsd 6.7 - TOR relay (non-exit) & /var folder

2020-06-23 Thread Salvatore Cuzzilla
Hi Folks,

I’m running a TOR node on my [APU2c4 (SSD) + OBSD 6.7]

somehow the TOR process is polluting my /var folder until, after few days, it’s 
fulfilled (~6G).
In the beginning I thought that it was related to the daemon's logs, something 
misconfigured within newsyslog.conf ... it’s not!

the funny thing is that, as soon as shut the daemon the /var folder is free-up 
back again…

-
12:46:44 -ksh root@APU2c4 /var/tor/diff-cache # df -h | grep /var
/dev/sd0e  6.3G1.7G4.4G28%/var

12:46:55 -ksh root@APU2c4 /var/tor/diff-cache # rcctl stop tor
tor(ok)

12:48:00 -ksh root@APU2c4 /var/tor/diff-cache # df -h | grep /var
/dev/sd0e  6.3G327M5.7G 5%/var
12:48:00 -ksh root@APU2c4 /var/tor/diff-cache 
-

I’m a bit lost, from where should I start?


Regards,
Salvatore.






Re: Tor Relay

2017-06-26 Thread Gareth Llewellyn
>  Original Message 
> From: ca...@protonmail.com
> Anyone with some experience/tips would be helpful

I run a few OpenBSD based relays/exits ( 
https://atlas.torproject.org/#search/BrassHorn ) so, if once you've followed 
the guides others have written, feel free to get in touch with any questions.
Also have a look at https://github.com/nusenu which has an ansible playbook 
along with lots of interesting stats which are more consumable here: 
https://nusenu.github.io/OrNetStats/
We need more OpenBSD relays for diversity reasons (e.g. of over 7000 relays 
only ~358 are OpenBSD) so thank you for running one!

I would also recommend that you subscribe to the tor-relays mailing list.

Re: Tor Relay

2017-06-25 Thread Todd
Tor opens a lot of network sockets.  It is helpful to raise kern.maxfiles
in /etc/sysctl.conf.  I add kern.maxfiles=2



On Sun, Jun 25, 2017 at 11:43 AM, Ax0n  wrote:

> does pkg_add tor
> does rcctl enable tor
> does rcctl start tor
>
> Welcome to your new onion relay node. It will relay and it will also listen
> on port 9050 as a socks proxy for local applications.
>
> On Jun 25, 2017 10:41, "nicehat"  wrote:
>
> > I'm looking for some good links on setting up a OBSD based Tor relay.
> > I had a few good ones but they have since gone into hiding.
> > Anyone with some experience/tips would be helpful
> > Regards
> > Happy Camper
> >
> > Sent with [ProtonMail](https://protonmail.com) Secure Email.
>


Re: Tor Relay

2017-06-25 Thread Ax0n
does pkg_add tor
does rcctl enable tor
does rcctl start tor

Welcome to your new onion relay node. It will relay and it will also listen
on port 9050 as a socks proxy for local applications.

On Jun 25, 2017 10:41, "nicehat"  wrote:

> I'm looking for some good links on setting up a OBSD based Tor relay.
> I had a few good ones but they have since gone into hiding.
> Anyone with some experience/tips would be helpful
> Regards
> Happy Camper
>
> Sent with [ProtonMail](https://protonmail.com) Secure Email.


Re: Tor Relay

2017-06-25 Thread Rui Ribeiro
Sorry, link here
https://unix.stackexchange.com/questions/327804/how-to-create-a-darknet-tor-web-site-in-linux/327805

On 25 June 2017 at 17:33, Rui Ribeiro  wrote:

> While not answering your question, this related post and links should be
> useful, I hope.
>
> Regards
>
> On 25 June 2017 at 16:39, nicehat  wrote:
>
>> I'm looking for some good links on setting up a OBSD based Tor relay.
>> I had a few good ones but they have since gone into hiding.
>> Anyone with some experience/tips would be helpful
>> Regards
>> Happy Camper
>>
>> Sent with [ProtonMail](https://protonmail.com) Secure Email.
>
>
>
>
> --
> Regards,
>
> --
> Rui Ribeiro
> Senior Linux Architect and Network Administrator
> ISCTE-IUL
> https://www.linkedin.com/pub/rui-ribeiro/16/ab8/434
>



-- 
Regards,

--
Rui Ribeiro
Senior Linux Architect and Network Administrator
ISCTE-IUL
https://www.linkedin.com/pub/rui-ribeiro/16/ab8/434


Re: Tor Relay

2017-06-25 Thread Rui Ribeiro
While not answering your question, this related post and links should be
useful, I hope.

Regards

On 25 June 2017 at 16:39, nicehat  wrote:

> I'm looking for some good links on setting up a OBSD based Tor relay.
> I had a few good ones but they have since gone into hiding.
> Anyone with some experience/tips would be helpful
> Regards
> Happy Camper
>
> Sent with [ProtonMail](https://protonmail.com) Secure Email.




-- 
Regards,

--
Rui Ribeiro
Senior Linux Architect and Network Administrator
ISCTE-IUL
https://www.linkedin.com/pub/rui-ribeiro/16/ab8/434


Re: Tor Relay

2017-06-25 Thread David Coppa
On Sun, Jun 25, 2017 at 5:39 PM, nicehat  wrote:
> I'm looking for some good links on setting up a OBSD based Tor relay.
> I had a few good ones but they have since gone into hiding.
> Anyone with some experience/tips would be helpful
> Regards
> Happy Camper

https://torbsd.github.io/

and, in particular:

https://torbsd.github.io/obsd-relays.html

Ciao!
David



Tor Relay

2017-06-25 Thread nicehat
I'm looking for some good links on setting up a OBSD based Tor relay.
I had a few good ones but they have since gone into hiding.
Anyone with some experience/tips would be helpful
Regards
Happy Camper

Sent with [ProtonMail](https://protonmail.com) Secure Email.